Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,9 +56,8 @@ article = "I will add it soon wait.."
|
|
56 |
|
57 |
# Create examples list from "examples/" directory
|
58 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
59 |
-
|
60 |
-
|
61 |
-
inputs= [input_1, input_2]
|
62 |
# Create the Gradio demo
|
63 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
64 |
inputs=inputs, # what are the inputs?
|
|
|
56 |
|
57 |
# Create examples list from "examples/" directory
|
58 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
59 |
+
inputs=gr.inputs.Image(type='pil', label="upload Image", source="upload")
|
60 |
+
|
|
|
61 |
# Create the Gradio demo
|
62 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
63 |
inputs=inputs, # what are the inputs?
|