Spaces:
Sleeping
Sleeping
fix: output return type
Browse files- .gitignore +2 -0
- app.py +1 -1
.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__
|
| 2 |
+
.env
|
app.py
CHANGED
|
@@ -40,5 +40,5 @@ def get_chat_output(prompt: str):
|
|
| 40 |
return jsonify({"error": "Facing errors, please try again..."})
|
| 41 |
|
| 42 |
|
| 43 |
-
iface = gr.Interface(fn=get_chat_output, inputs="text", outputs="
|
| 44 |
iface.launch()
|
|
|
|
| 40 |
return jsonify({"error": "Facing errors, please try again..."})
|
| 41 |
|
| 42 |
|
| 43 |
+
iface = gr.Interface(fn=get_chat_output, inputs="text", outputs="json")
|
| 44 |
iface.launch()
|