Spaces:
Build error
Build error
Update app.py
#2
by Miing - opened
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def predict_image(image, model_name):
|
|
| 42 |
return result
|
| 43 |
|
| 44 |
with gr.Blocks() as demo:
|
| 45 |
-
gr.Markdown("#
|
| 46 |
|
| 47 |
with gr.Row():
|
| 48 |
with gr.Column():
|
|
@@ -57,5 +57,5 @@ with gr.Blocks() as demo:
|
|
| 57 |
predict_button.click(fn=predict_image, inputs=[image_input, model_selector], outputs=prediction_output)
|
| 58 |
image_input.change(fn=lambda x: x, inputs=image_input, outputs=image_output)
|
| 59 |
|
| 60 |
-
demo.launch()
|
| 61 |
|
|
|
|
| 42 |
return result
|
| 43 |
|
| 44 |
with gr.Blocks() as demo:
|
| 45 |
+
gr.Markdown("# Area Prediction Angle")
|
| 46 |
|
| 47 |
with gr.Row():
|
| 48 |
with gr.Column():
|
|
|
|
| 57 |
predict_button.click(fn=predict_image, inputs=[image_input, model_selector], outputs=prediction_output)
|
| 58 |
image_input.change(fn=lambda x: x, inputs=image_input, outputs=image_output)
|
| 59 |
|
| 60 |
+
demo.launch(share=True)
|
| 61 |
|