Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,5 +26,5 @@ with gr.Blocks() as demo:
|
|
26 |
#設定按鈕
|
27 |
submit = gr.Button("Submit")
|
28 |
#設定按鈕點選事件
|
29 |
-
submit.click(fn=index_predict, inputs=image, outputs=[heights, bust, waist, hips, en_des, zh_des])
|
30 |
-
demo.launch()
|
|
|
26 |
#設定按鈕
|
27 |
submit = gr.Button("Submit")
|
28 |
#設定按鈕點選事件
|
29 |
+
submit.click(fn=index_predict, inputs=image, outputs=[heights, bust, waist, hips, en_des, zh_des] , api_name='predict')
|
30 |
+
demo.launch(inline=True, show_api=True, share=True)
|