Winston de Jong commited on
Commit ·
c7471fa
1
Parent(s): a32b60a
Fix file upload
Browse files
app.py
CHANGED
|
@@ -52,9 +52,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 52 |
gr.Markdown(" # Text-to-Image Gradio Template")
|
| 53 |
|
| 54 |
with gr.Row():
|
| 55 |
-
file_output = gr.File()
|
| 56 |
-
upload_button = gr.UploadButton("Click to Upload a File", file_types=["image"], file_count="single")
|
| 57 |
-
upload_button.upload(upload_file, upload_button, file_output)
|
| 58 |
|
| 59 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
| 60 |
|
|
|
|
| 52 |
gr.Markdown(" # Text-to-Image Gradio Template")
|
| 53 |
|
| 54 |
with gr.Row():
|
| 55 |
+
file_output = gr.File(label="Upload an image to detect faces", file_types="image", file_count="single")
|
| 56 |
+
# upload_button = gr.UploadButton("Click to Upload a File", file_types=["image"], file_count="single")
|
| 57 |
+
# upload_button.upload(upload_file, upload_button, file_output)
|
| 58 |
|
| 59 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
| 60 |
|