Spaces:
Sleeping
Sleeping
augustin commited on
Commit ·
a595acd
1
Parent(s): 0823b17
fix: the Interface code
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ model.eval()
|
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
-
gradio.Interface(
|
| 76 |
fn=predict,
|
| 77 |
inputs=[gradio.Image(label="Gambar", type="pil")],
|
| 78 |
outputs=[
|
|
@@ -82,4 +82,6 @@ gradio.Interface(
|
|
| 82 |
],
|
| 83 |
flagging_mode="never",
|
| 84 |
submit_btn="Prediksi"
|
| 85 |
-
)
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
+
demo = gradio.Interface(
|
| 76 |
fn=predict,
|
| 77 |
inputs=[gradio.Image(label="Gambar", type="pil")],
|
| 78 |
outputs=[
|
|
|
|
| 82 |
],
|
| 83 |
flagging_mode="never",
|
| 84 |
submit_btn="Prediksi"
|
| 85 |
+
)
|
| 86 |
+
|
| 87 |
+
demo.launch()
|