Spaces:
Runtime error
Runtime error
changed inp
Browse files
app.py
CHANGED
|
@@ -90,7 +90,8 @@ def image_mod(image):
|
|
| 90 |
if __name__ == "__main__":
|
| 91 |
# gradio's image inputs look like this: <PIL.Image.Image image mode=RGB size=305x266 at 0x7F3D01C91FA0>
|
| 92 |
# need to learn how to handle image inputs, or deal with file inputs or just file path strings
|
| 93 |
-
inp = gr.inputs.Textbox(lines=1, placeholder="Select an example from below", default="", label="Input Image Path", optional=False)
|
|
|
|
| 94 |
out = 'text'
|
| 95 |
# out = [gr.outputs.HTML(label="Output GIF"), gr.outputs.Textbox(label="Prediction")]
|
| 96 |
|
|
|
|
| 90 |
if __name__ == "__main__":
|
| 91 |
# gradio's image inputs look like this: <PIL.Image.Image image mode=RGB size=305x266 at 0x7F3D01C91FA0>
|
| 92 |
# need to learn how to handle image inputs, or deal with file inputs or just file path strings
|
| 93 |
+
# inp = gr.inputs.Textbox(lines=1, placeholder="Select an example from below", default="", label="Input Image Path", optional=False)
|
| 94 |
+
inp = gr.inputs.Image(label="Input Image", type="pil")
|
| 95 |
out = 'text'
|
| 96 |
# out = [gr.outputs.HTML(label="Output GIF"), gr.outputs.Textbox(label="Prediction")]
|
| 97 |
|