Update app.py
Browse files
app.py
CHANGED
|
@@ -17,10 +17,12 @@ def chatbot_interaction(input_text):
|
|
| 17 |
messages=[{"role": "user", "content": input_texxt}],
|
| 18 |
stream=True,
|
| 19 |
)
|
|
|
|
| 20 |
for message in response:
|
| 21 |
print(message, flush=True, end='')
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 24 |
iface = gr.Interface(
|
| 25 |
fn=chatbot_interaction,
|
| 26 |
inputs="text",
|
|
|
|
| 17 |
messages=[{"role": "user", "content": input_texxt}],
|
| 18 |
stream=True,
|
| 19 |
)
|
| 20 |
+
Q = ""
|
| 21 |
for message in response:
|
| 22 |
print(message, flush=True, end='')
|
| 23 |
+
Q += message
|
| 24 |
+
print(Q)
|
| 25 |
+
return Q
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=chatbot_interaction,
|
| 28 |
inputs="text",
|