Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,9 +60,10 @@ def generate_compliment(image):
|
|
60 |
return caption_text, compliment_text
|
61 |
|
62 |
# Gradio interface setup
|
|
|
63 |
iface = gr.Interface(
|
64 |
fn=generate_compliment,
|
65 |
-
inputs=gr.inputs.Image(label="Upload Image"),
|
66 |
outputs=[
|
67 |
gr.outputs.Textbox(label="Caption"),
|
68 |
gr.outputs.Textbox(label="Compliment")
|
|
|
60 |
return caption_text, compliment_text
|
61 |
|
62 |
# Gradio interface setup
|
63 |
+
# Gradio interface
|
64 |
iface = gr.Interface(
|
65 |
fn=generate_compliment,
|
66 |
+
inputs=gr.inputs.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")
|