omm7 commited on
Commit
03122e3
·
verified ·
1 Parent(s): 986f549

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -10,8 +10,14 @@ MODEL_NAME = "google/flan-t5-small"
10
  # -------------------- Model Logic --------------------
11
 
12
  # CRITICAL FIX: Simplified and highly directive prompt for the smallest model
13
- sys_prompt = "Classify the sentiment of the following customer review as either 'positive', 'negative', or 'neutral'. Respond with only one word."
14
-
 
 
 
 
 
 
15
  @st.cache_resource
16
  def load_llm():
17
  # ... (load_llm function remains identical) ...
 
10
  # -------------------- Model Logic --------------------
11
 
12
  # CRITICAL FIX: Simplified and highly directive prompt for the smallest model
13
+ # sys_prompt = "Classify the sentiment of the following customer review as either 'positive', 'negative', or 'neutral'. Respond with only one word."
14
+ sys_prompt = """
15
+ Classify the sentiment of the following customer review as either 'positive', 'negative', or 'neutral'. Respond with only one word.
16
+ Leverage your expertise in the aviation industry and deep understanding of industry trends to analyze the nuanced expressions and overall tone.
17
+ It is crucial to accurately identify neutral sentiments, which may indicate a balanced view or neutral stance towards Us Airways. Neutral expressions could involve factual statements without explicit positive or negative opinions.
18
+ Consider the importance of these neutral sentiments in gauging the public sentiment towards the airline company.
19
+ For instance, a positive sentiment might convey satisfaction with the airline's services, a negative sentiment could express dissatisfaction, while neutral sentiment may reflect an impartial observation or a neutral standpoint
20
+ """
21
  @st.cache_resource
22
  def load_llm():
23
  # ... (load_llm function remains identical) ...