Spaces:
Running
Running
configure gradio options properly
Browse files
app.py
CHANGED
@@ -28,7 +28,6 @@ interface_options = {
|
|
28 |
"interpretation": "default",
|
29 |
"layout": "horizontal",
|
30 |
"allow_flagging": "never",
|
31 |
-
"enable_queue": True
|
32 |
}
|
33 |
|
34 |
demo = gradio.Interface(fn=predict,
|
@@ -36,4 +35,9 @@ demo = gradio.Interface(fn=predict,
|
|
36 |
outputs=gradio.outputs.Label(num_top_classes=5),
|
37 |
**interface_options)
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
28 |
"interpretation": "default",
|
29 |
"layout": "horizontal",
|
30 |
"allow_flagging": "never",
|
|
|
31 |
}
|
32 |
|
33 |
demo = gradio.Interface(fn=predict,
|
|
|
35 |
outputs=gradio.outputs.Label(num_top_classes=5),
|
36 |
**interface_options)
|
37 |
|
38 |
+
launch_options = {
|
39 |
+
"enable_queue": True,
|
40 |
+
"share": False,
|
41 |
+
}
|
42 |
+
|
43 |
+
demo.launch(**launch_options)
|