Spaces:
Runtime error
Runtime error
fix outdated gr.inputs and gr.outputs
Browse filesSince this space is listed on the [HF Space Docker Example](https://huggingface.co/docs/hub/en/spaces-sdks-docker-examples), I would like to fix the issue
`gr.inputs` and `gr.outputs` does not exist anymore but `gr.Image` and `gr.Label`
main.py
CHANGED
@@ -19,8 +19,8 @@ def predict(inp):
|
|
19 |
def run():
|
20 |
demo = gr.Interface(
|
21 |
fn=predict,
|
22 |
-
inputs=gr.
|
23 |
-
outputs=gr.
|
24 |
)
|
25 |
|
26 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
19 |
def run():
|
20 |
demo = gr.Interface(
|
21 |
fn=predict,
|
22 |
+
inputs=gr.Image(type="pil"),
|
23 |
+
outputs=gr.Label(num_top_classes=3),
|
24 |
)
|
25 |
|
26 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|