Update app.py
Browse files
app.py
CHANGED
|
@@ -59,8 +59,7 @@ def response(prompt, history, selected_option, temperature=0.9, max_new_tokens=5
|
|
| 59 |
output = ""
|
| 60 |
for response in stream:
|
| 61 |
output += response.token.text
|
| 62 |
-
yield output
|
| 63 |
-
yield output
|
| 64 |
|
| 65 |
|
| 66 |
def update_prompt(selected_option, history):
|
|
|
|
| 59 |
output = ""
|
| 60 |
for response in stream:
|
| 61 |
output += response.token.text
|
| 62 |
+
yield history + [[prompt, output]]
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
def update_prompt(selected_option, history):
|