change image modal
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ with gr.Blocks(css=".output-class { display: none; }") as demo:
|
|
| 157 |
""")
|
| 158 |
gr.Interface(
|
| 159 |
create_tags,
|
| 160 |
-
inputs=[gr.Image(label="Source", sources=['upload'
|
| 161 |
outputs=[
|
| 162 |
gr.Textbox(label="Tag String"),
|
| 163 |
gr.Label(label="Tag Predictions", num_top_classes=200, show_label=False),
|
|
|
|
| 157 |
""")
|
| 158 |
gr.Interface(
|
| 159 |
create_tags,
|
| 160 |
+
inputs=[gr.Image(label="Source", sources=['upload'], type='pil', height="60vh", show_label=False), gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.20, label="Threshold")],
|
| 161 |
outputs=[
|
| 162 |
gr.Textbox(label="Tag String"),
|
| 163 |
gr.Label(label="Tag Predictions", num_top_classes=200, show_label=False),
|