Spaces:
Sleeping
Sleeping
Hannah commited on
Commit ·
5e80301
1
Parent(s): d1a7377
tweak
Browse files- __pycache__/app.cpython-311.pyc +0 -0
- app.py +3 -2
__pycache__/app.cpython-311.pyc
ADDED
|
Binary file (1.3 kB). View file
|
|
|
app.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
with gr.Blocks(
|
| 4 |
with gr.Row():
|
| 5 |
image_input = gr.File(file_count="multiple", label="Input Image")
|
| 6 |
with gr.Row():
|
| 7 |
image_output = gr.Image(label="Mask")
|
| 8 |
submit_button = gr.Button("Run Model", visible=True)
|
|
|
|
| 9 |
if __name__ == "__main__":
|
| 10 |
-
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
with gr.Blocks() as demo:
|
| 4 |
with gr.Row():
|
| 5 |
image_input = gr.File(file_count="multiple", label="Input Image")
|
| 6 |
with gr.Row():
|
| 7 |
image_output = gr.Image(label="Mask")
|
| 8 |
submit_button = gr.Button("Run Model", visible=True)
|
| 9 |
+
|
| 10 |
if __name__ == "__main__":
|
| 11 |
+
demo.launch(show_api=False, root_path="/test")
|