Back to gr.Interface, removed interactivity.
Browse files
app.py
CHANGED
@@ -119,18 +119,7 @@ prober = Prober(
|
|
119 |
model_checkpoint= "cache/20211220_191132_refclef_32_512_resnet50_8_6_8_0.1_0.1_0.1_0_0.0001_0.0_12_4_90_1_0_0_0/best.ckpt"
|
120 |
)
|
121 |
|
122 |
-
|
123 |
-
with gr.Row():
|
124 |
-
with gr.Column():
|
125 |
-
a = gr.Number(label="sample_id")
|
126 |
-
output = gr.Image(prober.preview_image(a))
|
127 |
-
with gr.Row():
|
128 |
-
re = gr.Textbox(label="referring expression")
|
129 |
-
greet_btn = gr.Button("Greet")
|
130 |
-
output = gr.Image()
|
131 |
-
greet_btn.click(fn=prober.probe, inputs=[a, name], outputs=output)
|
132 |
-
|
133 |
-
# demo = gr.Interface(fn=prober.probe, inputs=["number", "text"], outputs="image", live=True)
|
134 |
|
135 |
demo.queue(concurrency_count=10)
|
136 |
-
demo.launch(
|
|
|
119 |
model_checkpoint= "cache/20211220_191132_refclef_32_512_resnet50_8_6_8_0.1_0.1_0.1_0_0.0001_0.0_12_4_90_1_0_0_0/best.ckpt"
|
120 |
)
|
121 |
|
122 |
+
demo = gr.Interface(fn=prober.probe, inputs=["number", "text"], outputs="image")#, live=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
|
124 |
demo.queue(concurrency_count=10)
|
125 |
+
demo.launch()
|