Adam Jirkovsky
commited on
Commit
·
81315ef
1
Parent(s):
4ac900f
Captcha update
Browse files
app.py
CHANGED
@@ -316,49 +316,23 @@ with demo:
|
|
316 |
|
317 |
with gr.Row():
|
318 |
with gr.Column():
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
323 |
-
label="Precision",
|
324 |
-
multiselect=False,
|
325 |
-
value="other",
|
326 |
-
interactive=True,
|
327 |
-
info="What weight precision were you using during the evaluation?"
|
328 |
-
)
|
329 |
-
hf_model_id = gr.Textbox(label="Model link (Optional)", info="URL to the model's Hugging Face repository, or it's official website")
|
330 |
-
contact_email = gr.Textbox(label="Your E-Mail")
|
331 |
-
file_output = gr.File()
|
332 |
-
upload_button = gr.UploadButton("Upload json", file_types=['.json'])
|
333 |
-
upload_button.upload(validate_upload, upload_button, file_output)
|
334 |
-
"""
|
335 |
-
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
336 |
-
model_type = gr.Dropdown(
|
337 |
-
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
338 |
-
label="Model type",
|
339 |
-
multiselect=False,
|
340 |
-
value=None,
|
341 |
-
interactive=True,
|
342 |
-
)
|
343 |
-
"""
|
344 |
-
"""
|
345 |
-
with gr.Column():
|
346 |
precision = gr.Dropdown(
|
347 |
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
348 |
label="Precision",
|
349 |
multiselect=False,
|
350 |
-
value="
|
351 |
interactive=True,
|
|
|
352 |
)
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
)
|
360 |
-
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
361 |
-
"""
|
362 |
with gr.Group():
|
363 |
image, text = generate_captcha()
|
364 |
captcha_img = gr.Image(
|
@@ -368,7 +342,7 @@ with demo:
|
|
368 |
show_fullscreen_button=False,
|
369 |
show_share_button=False,
|
370 |
)
|
371 |
-
captcha_input = gr.Textbox(placeholder="Enter the text in the image above")
|
372 |
submit_button = gr.Button("Submit Eval", interactive=True)
|
373 |
submission_result = gr.Markdown()
|
374 |
submit_button.click(
|
|
|
316 |
|
317 |
with gr.Row():
|
318 |
with gr.Column():
|
319 |
+
with gr.Group():
|
320 |
+
model_name_textbox = gr.Textbox(label="Model name")
|
321 |
+
#precision = gr.Radio(["bfloat16", "float16", "4bit"], label="Precision", info="What precision are you using for inference?")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
precision = gr.Dropdown(
|
323 |
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
324 |
label="Precision",
|
325 |
multiselect=False,
|
326 |
+
value="other",
|
327 |
interactive=True,
|
328 |
+
info="What weight precision were you using during the evaluation?"
|
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_output = gr.File()
|
333 |
+
upload_button = gr.UploadButton("Upload json", file_types=['.json'])
|
334 |
+
upload_button.upload(validate_upload, upload_button, file_output)
|
335 |
+
|
|
|
|
|
|
|
336 |
with gr.Group():
|
337 |
image, text = generate_captcha()
|
338 |
captcha_img = gr.Image(
|
|
|
342 |
show_fullscreen_button=False,
|
343 |
show_share_button=False,
|
344 |
)
|
345 |
+
captcha_input = gr.Textbox(placeholder="Enter the text in the image above", show_label=False, container=False)
|
346 |
submit_button = gr.Button("Submit Eval", interactive=True)
|
347 |
submission_result = gr.Markdown()
|
348 |
submit_button.click(
|