frankai98 commited on
Commit
daa50b0
·
verified ·
1 Parent(s): 7b1d3eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -86,7 +86,7 @@ def main():
86
 
87
  # Input: Query question for scoring and CSV file upload for candidate tweets
88
  query_input = st.text_area("Enter your query question❔ for analysis (this does not need to be part of the CSV):")
89
- uploaded_file = st.file_uploader(f"Upload Tweets CSV File🗄️ (must contain a '{tweets_column}' column with preferably <300 tweets)", type=["csv"])
90
 
91
  candidate_docs = []
92
  if uploaded_file is not None:
@@ -244,10 +244,9 @@ def main():
244
  # Build prompt
245
  messages = [
246
  {"role": "user", "content": f"""
247
- Generate a well-structured business report based on tweets from twitter/X with sentiment score (0: negative, 1: neutral, 2: positive) that answers Query Question and meets following Requirements:
248
  **Requirements:**
249
- - Do not include any greeting, summary statement, or closing question.
250
- - Generate only the final report text, starting with the introduction, key insights, and ending with the conclusion.
251
  - Ensure the analysis is concise and does not cut off abruptly.
252
  - Summarize major findings without repeating verbatim.
253
  - Cover both positive and negative aspects, highlighting trends in user sentiment.
 
86
 
87
  # Input: Query question for scoring and CSV file upload for candidate tweets
88
  query_input = st.text_area("Enter your query question❔ for analysis (this does not need to be part of the CSV):")
89
+ uploaded_file = st.file_uploader(f"Upload Tweets CSV File🗄️ (must contain a '{tweets_column}' column with preferably <1000 tweets)", type=["csv"])
90
 
91
  candidate_docs = []
92
  if uploaded_file is not None:
 
244
  # Build prompt
245
  messages = [
246
  {"role": "user", "content": f"""
247
+ Generate a well-structured business report based on tweets from twitter/X with sentiment score (0: negative, 1: neutral, 2: positive) that answers Query Question and meets following Requirements.
248
  **Requirements:**
249
+ - Include an introduction, key insights, and a conclusion.
 
250
  - Ensure the analysis is concise and does not cut off abruptly.
251
  - Summarize major findings without repeating verbatim.
252
  - Cover both positive and negative aspects, highlighting trends in user sentiment.