srini047 commited on
Commit
0ebb0a5
1 Parent(s): 42b59e5

fix: output return type

Browse files
Files changed (2) hide show
  1. .gitignore +2 -0
  2. 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="text")
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()