Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ def chatbot(question):
|
|
12 |
response = query({
|
13 |
"inputs": question
|
14 |
})
|
15 |
-
|
|
|
16 |
|
17 |
iface = gr.Interface(
|
18 |
fn=chatbot,
|
|
|
12 |
response = query({
|
13 |
"inputs": question
|
14 |
})
|
15 |
+
generated_text = response[0]["generated_text"].strip()
|
16 |
+
return generated_text
|
17 |
|
18 |
iface = gr.Interface(
|
19 |
fn=chatbot,
|