Spaces:
Runtime error
Runtime error
fix for hf schema and localhost crash
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ def app():
|
|
| 96 |
target_image = gr.Image(type="pil", label="Target Image", visible=True, interactive=True)
|
| 97 |
|
| 98 |
detect_button = gr.Button(value="Detect Objects")
|
| 99 |
-
prompt_type = gr.
|
| 100 |
|
| 101 |
with gr.Tab("Visual") as visual_tab:
|
| 102 |
with gr.Row():
|
|
@@ -292,4 +292,4 @@ with gradio_app:
|
|
| 292 |
)
|
| 293 |
|
| 294 |
|
| 295 |
-
gradio_app.launch(allowed_paths=["figures"])
|
|
|
|
| 96 |
target_image = gr.Image(type="pil", label="Target Image", visible=True, interactive=True)
|
| 97 |
|
| 98 |
detect_button = gr.Button(value="Detect Objects")
|
| 99 |
+
prompt_type = gr.Textbox(value='Visual', visible=False) # Default prompt type
|
| 100 |
|
| 101 |
with gr.Tab("Visual") as visual_tab:
|
| 102 |
with gr.Row():
|
|
|
|
| 292 |
)
|
| 293 |
|
| 294 |
|
| 295 |
+
gradio_app.launch(allowed_paths=["figures"], share=True)
|