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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -126,8 +126,8 @@ def stream_chat(message: str, history: list, model: str, temperature: float, max
126
  "keep_alive": "60s",
127
  },
128
  )
129
-
130
- yield response
131
 
132
 
133
 
@@ -153,7 +153,7 @@ def main(message: str, history: list, model: str, temperature: float, max_new_to
153
  penalty
154
  )
155
 
156
- yield response['message']['content']
157
 
158
 
159
 
 
126
  "keep_alive": "60s",
127
  },
128
  )
129
+ print(response)
130
+ return response
131
 
132
 
133
 
 
153
  penalty
154
  )
155
 
156
+ return response['message']['content']
157
 
158
 
159