rwitz commited on
Commit
5a3a71e
1 Parent(s): 4f83dc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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": 16,
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("User: " + user_input)
87
- chatbot1.append("Bot 1: " + bot1_response)
88
 
89
- chatbot2.append("User: " + user_input)
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