elshehawy commited on
Commit
cc4118d
Β·
1 Parent(s): 8f85bb5

change input type to "binary"

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ def find_orgs(uploaded_file):
99
  return get_metrics_trf(uploaded_file)
100
  # radio_btn = gr.Radio(choices=['GPT', 'iSemantics'], value='iSemantics', label='Available models', show_label=True)
101
  # textbox = gr.Textbox(label="Enter your text", placeholder=str(all_metrics), lines=8)
102
- upload_btn = gr.UploadButton(label='Upload a json file.', type='filepath')
103
 
104
  iface = gr.Interface(fn=find_orgs, inputs=upload_btn, outputs="text")
105
  iface.launch(share=True)
 
99
  return get_metrics_trf(uploaded_file)
100
  # radio_btn = gr.Radio(choices=['GPT', 'iSemantics'], value='iSemantics', label='Available models', show_label=True)
101
  # textbox = gr.Textbox(label="Enter your text", placeholder=str(all_metrics), lines=8)
102
+ upload_btn = gr.UploadButton(label='Upload a json file.', type='binary')
103
 
104
  iface = gr.Interface(fn=find_orgs, inputs=upload_btn, outputs="text")
105
  iface.launch(share=True)