Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def upload_file(files):
|
|
71 |
response = generate_gemini_response(input_prompt, file_paths[0])
|
72 |
return file_paths[0], response
|
73 |
|
74 |
-
with gr.Blocks() as
|
75 |
header = gr.Label("RADARPICK: Vous avez été radarisé!")
|
76 |
image_output = gr.Image()
|
77 |
upload_button = gr.UploadButton("Click to upload an image", file_types=["image"], file_count="multiple")
|
@@ -87,4 +87,4 @@ with gr.Blocks() as iface:
|
|
87 |
upload_button.upload(fn=lambda files: files[0].name if files else None, inputs=[upload_button], outputs=image_output)
|
88 |
generate_button.click(fn=process_generate, inputs=[upload_button], outputs=[image_output, file_output])
|
89 |
|
90 |
-
|
|
|
71 |
response = generate_gemini_response(input_prompt, file_paths[0])
|
72 |
return file_paths[0], response
|
73 |
|
74 |
+
with gr.Blocks() as demo:
|
75 |
header = gr.Label("RADARPICK: Vous avez été radarisé!")
|
76 |
image_output = gr.Image()
|
77 |
upload_button = gr.UploadButton("Click to upload an image", file_types=["image"], file_count="multiple")
|
|
|
87 |
upload_button.upload(fn=lambda files: files[0].name if files else None, inputs=[upload_button], outputs=image_output)
|
88 |
generate_button.click(fn=process_generate, inputs=[upload_button], outputs=[image_output, file_output])
|
89 |
|
90 |
+
demo.launch(share=True)
|