Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,14 +49,11 @@ def generate_compliment(image):
|
|
| 49 |
# Gradio interface
|
| 50 |
iface = gr.Interface(
|
| 51 |
fn=generate_compliment,
|
| 52 |
-
inputs=gr.Image(type="pil"),
|
| 53 |
outputs=[
|
| 54 |
gr.Textbox(label="Caption"),
|
| 55 |
gr.Textbox(label="Compliment")
|
| 56 |
],
|
| 57 |
title="Compliment Bot π",
|
| 58 |
-
description="Upload your headshot and get a personalized compliment!"
|
| 59 |
-
share=True # Setting share=True to create a public link
|
| 60 |
)
|
| 61 |
-
|
| 62 |
-
iface.launch()
|
|
|
|
| 49 |
# Gradio interface
|
| 50 |
iface = gr.Interface(
|
| 51 |
fn=generate_compliment,
|
| 52 |
+
inputs=gr.Image(type="pil", label="Upload Image"),
|
| 53 |
outputs=[
|
| 54 |
gr.Textbox(label="Caption"),
|
| 55 |
gr.Textbox(label="Compliment")
|
| 56 |
],
|
| 57 |
title="Compliment Bot π",
|
| 58 |
+
description="Upload your headshot and get a personalized compliment!"
|
|
|
|
| 59 |
)
|
|
|
|
|
|