Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -182,9 +182,7 @@ async def vote_up_model(state, chatbot, chatbot2, character_name, character_desc
|
|
182 |
# Update ratings and yield winner/loser immediately
|
183 |
update_message = update_ratings(state, 0, collection, "overall")
|
184 |
chatbot.append(update_message[0])
|
185 |
-
chatbot2.append(update_message[1])
|
186 |
-
yield chatbot, chatbot2, gr.Button.update(interactive=False, value="👍 Upvoted"), gr.Button.update(interactive=False), gr.Textbox.update(interactive=False), gr.Button.update(interactive=False)
|
187 |
-
|
188 |
# Process sentiment analysis asynchronously
|
189 |
top_category = await classify_vote(user_input)
|
190 |
|
@@ -201,7 +199,6 @@ async def vote_down_model(state, chatbot, chatbot2, character_name, character_de
|
|
201 |
update_message = update_ratings(state, 1, collection, "overall")
|
202 |
chatbot2.append(update_message[0])
|
203 |
chatbot.append(update_message[1])
|
204 |
-
yield chatbot, chatbot2, gr.Button.update(interactive=False), gr.Button.update(interactive=False, value="👍 Upvoted"), gr.Textbox.update(interactive=False), gr.Button.update(interactive=False)
|
205 |
|
206 |
# Process sentiment analysis asynchronously
|
207 |
top_category = await classify_vote(user_input)
|
|
|
182 |
# Update ratings and yield winner/loser immediately
|
183 |
update_message = update_ratings(state, 0, collection, "overall")
|
184 |
chatbot.append(update_message[0])
|
185 |
+
chatbot2.append(update_message[1])
|
|
|
|
|
186 |
# Process sentiment analysis asynchronously
|
187 |
top_category = await classify_vote(user_input)
|
188 |
|
|
|
199 |
update_message = update_ratings(state, 1, collection, "overall")
|
200 |
chatbot2.append(update_message[0])
|
201 |
chatbot.append(update_message[1])
|
|
|
202 |
|
203 |
# Process sentiment analysis asynchronously
|
204 |
top_category = await classify_vote(user_input)
|