Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def process_json(input_json):
|
|
19 |
return response_str
|
20 |
|
21 |
# Create a Gradio interface for the function that accepts JSON input
|
22 |
-
iface = gr.Interface(fn=process_json, inputs='
|
23 |
|
24 |
# Launch the Gradio interface
|
25 |
iface.launch()
|
|
|
19 |
return response_str
|
20 |
|
21 |
# Create a Gradio interface for the function that accepts JSON input
|
22 |
+
iface = gr.Interface(fn=process_json, inputs='text', outputs='json')
|
23 |
|
24 |
# Launch the Gradio interface
|
25 |
iface.launch()
|