plannist
commited on
Commit
·
f06dabc
1
Parent(s):
0abd453
change return type of array
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ pipe = pipeline(
|
|
| 23 |
|
| 24 |
def chat_fn(prompt):
|
| 25 |
output = pipe(prompt)[0]["generated_text"]
|
| 26 |
-
return output
|
| 27 |
|
| 28 |
demo = gr.Interface(fn=chat_fn, inputs="text", outputs="text")
|
| 29 |
demo.launch()
|
|
|
|
| 23 |
|
| 24 |
def chat_fn(prompt):
|
| 25 |
output = pipe(prompt)[0]["generated_text"]
|
| 26 |
+
return [output]
|
| 27 |
|
| 28 |
demo = gr.Interface(fn=chat_fn, inputs="text", outputs="text")
|
| 29 |
demo.launch()
|