nikrizal commited on
Commit
3053305
·
1 Parent(s): 3ee08f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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='json', outputs='json')
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()