Adam Jirkovsky
commited on
Commit
·
c55193e
1
Parent(s):
521925b
Adjust upload GUI
Browse files
app.py
CHANGED
@@ -329,9 +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 |
-
|
333 |
-
|
334 |
-
upload_button.
|
|
|
335 |
|
336 |
with gr.Group():
|
337 |
image, text = generate_captcha()
|
@@ -349,7 +350,7 @@ with demo:
|
|
349 |
fn = add_new_eval,
|
350 |
inputs = [
|
351 |
model_name_textbox,
|
352 |
-
|
353 |
precision,
|
354 |
hf_model_id,
|
355 |
contact_email
|
|
|
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 |
+
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()
|
|
|
350 |
fn = add_new_eval,
|
351 |
inputs = [
|
352 |
model_name_textbox,
|
353 |
+
file_input,
|
354 |
precision,
|
355 |
hf_model_id,
|
356 |
contact_email
|