vilarin commited on
Commit
c3485a7
·
verified ·
1 Parent(s): bf416c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -153,13 +153,9 @@ def main(message: str, history: list, model: str, temperature: float, max_new_to
153
  penalty
154
  )
155
 
156
- print(response)
 
157
 
158
- buffer = ""
159
- for chunk in response:
160
- buffer += chunk["message"]["content"]
161
- yield buffer
162
-
163
 
164
  chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
165
 
 
153
  penalty
154
  )
155
 
156
+ yield response['message']['content']
157
+
158
 
 
 
 
 
 
159
 
160
  chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
161