frankai98 commited on
Commit
35ed070
·
verified ·
1 Parent(s): c4bb435

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,7 +91,7 @@ def build_prompt(query_input, sampled_docs):
91
  system_message = """You are an helpful assistant. Read the Tweets with their sentiment (Negative, Neutral, Positive) provided and produce a well-structured report that answers the query question.
92
  Your task:
93
  - Summarize both positive and negative aspects, highlighting any trends in user sentiment.
94
- - Include an introduction, key insights, and a conclusion, reaching about 300 words.
95
  - DO NOT repeat these instructions or the user's query in the final report. Only provide the final text."""
96
 
97
  user_content = f"""**Tweets**:
@@ -122,7 +122,7 @@ def main():
122
 
123
  # Input: Query question for analysis and CSV file upload for candidate tweets
124
  query_input = st.text_area("Enter your query question❓for analysis (Format: How do these people feel about ...?) (this does not need to be part of the CSV):")
125
- uploaded_file = st.file_uploader(f"Upload Tweets CSV File🗄️(must contain a '{tweets_column}' column with preferably <500 tweets)", type=["csv"])
126
 
127
  candidate_docs = []
128
  if uploaded_file is not None:
 
91
  system_message = """You are an helpful assistant. Read the Tweets with their sentiment (Negative, Neutral, Positive) provided and produce a well-structured report that answers the query question.
92
  Your task:
93
  - Summarize both positive and negative aspects, highlighting any trends in user sentiment.
94
+ - Include an introduction, key insights, and a conclusion, reaching about 400 words.
95
  - DO NOT repeat these instructions or the user's query in the final report. Only provide the final text."""
96
 
97
  user_content = f"""**Tweets**:
 
122
 
123
  # Input: Query question for analysis and CSV file upload for candidate tweets
124
  query_input = st.text_area("Enter your query question❓for analysis (Format: How do these people feel about ...?) (this does not need to be part of the CSV):")
125
+ uploaded_file = st.file_uploader(f"Upload Tweets CSV File < 1MB🗄️(must contain a '{tweets_column}' column with preferably <1000 tweets)", type=["csv"])
126
 
127
  candidate_docs = []
128
  if uploaded_file is not None: