Adam Jirkovsky
commited on
Commit
·
38ca6d6
1
Parent(s):
6d9b17c
Adjust upload GUI
Browse files
app.py
CHANGED
@@ -332,7 +332,7 @@ with demo:
|
|
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,
|
336 |
|
337 |
with gr.Group():
|
338 |
image, text = generate_captcha()
|
|
|
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_input)
|
336 |
|
337 |
with gr.Group():
|
338 |
image, text = generate_captcha()
|