Spaces:
Runtime error
Runtime error
change input type to "binary"
Browse files
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='
|
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)
|