SwatGarg commited on
Commit
9940c4f
1 Parent(s): c3e1c3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -142,27 +142,27 @@ with input_container:
142
 
143
  # Define rewards
144
  if user_sentiment in ["Positive", "Moderately Positive"]:
145
- if mood_trend == "increased":
146
  reward = +1
147
  mood_trend_symbol = " ⬆️"
148
- elif mood_trend == "unchanged":
149
  reward = +0.8
150
- mood_trend_symbol = ""
151
- else: # decreased
152
  reward = -0.2
153
- mood_trend_symbol = " ⬇️"
154
  else:
155
- if mood_trend == "increased":
156
  reward = +1
157
  mood_trend_symbol = " ⬆️"
158
- elif mood_trend == "unchanged":
159
  reward = -0.2
160
- mood_trend_symbol = ""
161
- else: # decreased
162
  reward = -1
163
- mood_trend_symbol = " ⬇️"
164
 
165
- print(f"mood_trend - sentiment - reward: {mood_trend} - {user_sentiment} - 🛑{reward}🛑")
166
 
167
 
168
  # Update Q-values
 
142
 
143
  # Define rewards
144
  if user_sentiment in ["Positive", "Moderately Positive"]:
145
+ if mood_trend == "increased":
146
  reward = +1
147
  mood_trend_symbol = " ⬆️"
148
+ elif mood_trend == "unchanged":
149
  reward = +0.8
150
+ mood_trend_symbol = ""
151
+ else: # decreased
152
  reward = -0.2
153
+ mood_trend_symbol = " ⬇️"
154
  else:
155
+ if mood_trend == "increased":
156
  reward = +1
157
  mood_trend_symbol = " ⬆️"
158
+ elif mood_trend == "unchanged":
159
  reward = -0.2
160
+ mood_trend_symbol = ""
161
+ else: # decreased
162
  reward = -1
163
+ mood_trend_symbol = " ⬇️"
164
 
165
+ print(f"mood_trend - sentiment - reward: {mood_trend} - {user_sentiment} - 🛑{reward}🛑")
166
 
167
 
168
  # Update Q-values