Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,11 @@ def predict(image):
|
|
8 |
|
9 |
demo = gr.Interface(
|
10 |
fn=predict,
|
11 |
-
inputs=gr.Image(),
|
12 |
outputs='text'
|
13 |
)
|
14 |
|
15 |
demo.launch()
|
16 |
|
17 |
# gr.Interface.load("models/ronniet/git-base-env").launch()
|
18 |
-
|
19 |
# gr.Interface.load("models/microsoft/git-base").launch()
|
|
|
8 |
|
9 |
demo = gr.Interface(
|
10 |
fn=predict,
|
11 |
+
inputs=gr.Image(type="pil"),
|
12 |
outputs='text'
|
13 |
)
|
14 |
|
15 |
demo.launch()
|
16 |
|
17 |
# gr.Interface.load("models/ronniet/git-base-env").launch()
|
|
|
18 |
# gr.Interface.load("models/microsoft/git-base").launch()
|