Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def get_bot_response(url, prompt):
|
|
33 |
"input": {
|
34 |
"prompt": prompt,
|
35 |
"sampling_params": {
|
36 |
-
"max_new_tokens":
|
37 |
"temperature": 0.7,
|
38 |
}
|
39 |
}
|
@@ -83,11 +83,9 @@ def user_ask(state, chatbot1, chatbot2, textbox):
|
|
83 |
user_input = textbox
|
84 |
bot1_response, bot2_response = chat_with_bots(user_input, state)
|
85 |
|
86 |
-
chatbot1.append(
|
87 |
-
chatbot1.append("Bot 1: " + bot1_response)
|
88 |
|
89 |
-
chatbot2.append(
|
90 |
-
chatbot2.append("Bot 2: " + bot2_response)
|
91 |
|
92 |
# Enable voting buttons
|
93 |
global upvote_btn_a,upvote_btn_b
|
|
|
33 |
"input": {
|
34 |
"prompt": prompt,
|
35 |
"sampling_params": {
|
36 |
+
"max_new_tokens": 50,
|
37 |
"temperature": 0.7,
|
38 |
}
|
39 |
}
|
|
|
83 |
user_input = textbox
|
84 |
bot1_response, bot2_response = chat_with_bots(user_input, state)
|
85 |
|
86 |
+
chatbot1.append(user_input,bot1_response)
|
|
|
87 |
|
88 |
+
chatbot2.append(user_input, bot2_response)
|
|
|
89 |
|
90 |
# Enable voting buttons
|
91 |
global upvote_btn_a,upvote_btn_b
|