Spaces:
Runtime error
Runtime error
Update app.py
Browse filesFixed issue AttributeError: module 'gradio' has no attribute 'inputs'
app.py
CHANGED
@@ -79,10 +79,10 @@ def predict(input_image:Image.Image):
|
|
79 |
interface = gr.Interface(
|
80 |
fn=predict,
|
81 |
inputs=[
|
82 |
-
gr.
|
83 |
],
|
84 |
outputs=[
|
85 |
-
gr.
|
86 |
-
gr.
|
87 |
],
|
88 |
).launch(share=True)
|
|
|
79 |
interface = gr.Interface(
|
80 |
fn=predict,
|
81 |
inputs=[
|
82 |
+
gr.Image(label="Input Image", type="pil")
|
83 |
],
|
84 |
outputs=[
|
85 |
+
gr.Label(label="Class"),
|
86 |
+
gr.Image(label="Face with Explainability", type="pil")
|
87 |
],
|
88 |
).launch(share=True)
|