Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,10 +47,10 @@ def generate_compliment(image):
|
|
47 |
# Gradio interface
|
48 |
iface = gr.Interface(
|
49 |
fn=generate_compliment,
|
50 |
-
inputs=gr.
|
51 |
outputs=[
|
52 |
-
gr.
|
53 |
-
gr.
|
54 |
],
|
55 |
title="Compliment Bot π",
|
56 |
description="Upload your headshot and get a personalized compliment!"
|
|
|
47 |
# Gradio interface
|
48 |
iface = gr.Interface(
|
49 |
fn=generate_compliment,
|
50 |
+
inputs=gr.Image(type="pil"),
|
51 |
outputs=[
|
52 |
+
gr.Textbox(label="Caption"),
|
53 |
+
gr.Textbox(label="Compliment")
|
54 |
],
|
55 |
title="Compliment Bot π",
|
56 |
description="Upload your headshot and get a personalized compliment!"
|