Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,9 @@ def generate_text(input_text, history):
|
|
| 18 |
output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|
| 19 |
response = output['choices'][0]['text']
|
| 20 |
history.append([input_text, response])
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
yield "You typed: " + message[: i+1]
|
| 25 |
|
| 26 |
|
| 27 |
|
|
|
|
| 18 |
output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|
| 19 |
response = output['choices'][0]['text']
|
| 20 |
history.append([input_text, response])
|
| 21 |
+
for i in range(len(response)):
|
| 22 |
+
time.sleep(0.3)
|
| 23 |
+
yield "You typed: " + message[: i+1]
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
|