Adam Jirkovsky
commited on
Commit
·
b2d9207
1
Parent(s):
6463eb6
Filter file types when uploading
Browse files
app.py
CHANGED
@@ -337,7 +337,7 @@ with demo:
|
|
337 |
)
|
338 |
hf_model_id = gr.Textbox(label="Model link (Optional)", info="URL to the model's Hugging Face repository, or it's official website")
|
339 |
contact_email = gr.Textbox(label="Your E-Mail")
|
340 |
-
file_input = gr.File(file_count="single", interactive=True, label="Upload json file with evaluation results")
|
341 |
file_input.upload(validate_upload, file_input)
|
342 |
#upload_button = gr.UploadButton("Upload json", file_types=['.json'])
|
343 |
#upload_button.upload(validate_upload, upload_button, file_input)
|
|
|
337 |
)
|
338 |
hf_model_id = gr.Textbox(label="Model link (Optional)", info="URL to the model's Hugging Face repository, or it's official website")
|
339 |
contact_email = gr.Textbox(label="Your E-Mail")
|
340 |
+
file_input = gr.File(file_count="single", interactive=True, label="Upload json file with evaluation results", file_types=['.json', '.jsonl'])
|
341 |
file_input.upload(validate_upload, file_input)
|
342 |
#upload_button = gr.UploadButton("Upload json", file_types=['.json'])
|
343 |
#upload_button.upload(validate_upload, upload_button, file_input)
|