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

Update app.py

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