Adam Jirkovsky
commited on
Commit
·
0d48f0c
1
Parent(s):
7dead3c
Remove upload button
Browse files
app.py
CHANGED
@@ -329,10 +329,10 @@ with demo:
|
|
329 |
)
|
330 |
hf_model_id = gr.Textbox(label="Model link (Optional)", info="URL to the model's Hugging Face repository, or it's official website")
|
331 |
contact_email = gr.Textbox(label="Your E-Mail")
|
332 |
-
file_input = gr.File(file_count="single", interactive=True)
|
333 |
-
|
334 |
-
upload_button = gr.UploadButton("Upload json", file_types=['.json'])
|
335 |
-
upload_button.upload(validate_upload, upload_button, file_input)
|
336 |
|
337 |
with gr.Group():
|
338 |
image, text = generate_captcha()
|
|
|
329 |
)
|
330 |
hf_model_id = gr.Textbox(label="Model link (Optional)", info="URL to the model's Hugging Face repository, or it's official website")
|
331 |
contact_email = gr.Textbox(label="Your E-Mail")
|
332 |
+
file_input = gr.File(file_count="single", interactive=True, label="Upload json file with evaluation results")
|
333 |
+
file_input.upload(validate_upload, file_input)
|
334 |
+
#upload_button = gr.UploadButton("Upload json", file_types=['.json'])
|
335 |
+
#upload_button.upload(validate_upload, upload_button, file_input)
|
336 |
|
337 |
with gr.Group():
|
338 |
image, text = generate_captcha()
|