Adam Jirkovsky
commited on
Commit
·
6d9b17c
1
Parent(s):
c55193e
Adjust upload GUI
Browse files
app.py
CHANGED
@@ -330,9 +330,9 @@ with demo:
|
|
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 |
-
file_input.upload(validate_upload, file_input)
|
334 |
-
|
335 |
-
|
336 |
|
337 |
with gr.Group():
|
338 |
image, text = generate_captcha()
|
|
|
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 |
+
#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_output)
|
336 |
|
337 |
with gr.Group():
|
338 |
image, text = generate_captcha()
|