Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def generate_compliment(image):
|
|
| 63 |
# Gradio interface
|
| 64 |
iface = gr.Interface(
|
| 65 |
fn=generate_compliment,
|
| 66 |
-
inputs=gr.
|
| 67 |
outputs=[
|
| 68 |
gr.outputs.Textbox(label="Caption"),
|
| 69 |
gr.outputs.Textbox(label="Compliment")
|
|
|
|
| 63 |
# Gradio interface
|
| 64 |
iface = gr.Interface(
|
| 65 |
fn=generate_compliment,
|
| 66 |
+
inputs=gr.Image(type="pil", label="Upload Image"), # Use gr.inputs.Image for image upload
|
| 67 |
outputs=[
|
| 68 |
gr.outputs.Textbox(label="Caption"),
|
| 69 |
gr.outputs.Textbox(label="Compliment")
|