Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,11 +198,12 @@ def predire(image):
|
|
| 198 |
height=500,
|
| 199 |
font=dict(size=16)
|
| 200 |
)
|
|
|
|
| 201 |
return fig
|
| 202 |
|
| 203 |
# Interface Gradio
|
| 204 |
# Exemple pour Plotly hors Gradio :
|
| 205 |
-
|
| 206 |
demo = gr.Interface(
|
| 207 |
fn=predire,
|
| 208 |
inputs=gr.Image(type="numpy", label="Importer une œuvre"),
|
|
|
|
| 198 |
height=500,
|
| 199 |
font=dict(size=16)
|
| 200 |
)
|
| 201 |
+
fig.show(config={'displayModeBar': False})
|
| 202 |
return fig
|
| 203 |
|
| 204 |
# Interface Gradio
|
| 205 |
# Exemple pour Plotly hors Gradio :
|
| 206 |
+
|
| 207 |
demo = gr.Interface(
|
| 208 |
fn=predire,
|
| 209 |
inputs=gr.Image(type="numpy", label="Importer une œuvre"),
|