Spaces:
Runtime error
Runtime error
Commit
·
1d2f8b3
1
Parent(s):
643b2b7
Updated app.py file by removing the deprecated Gradio methods, gr.Inputs and gr.Outputs (#2)
Browse files- Updated app.py file by removing the deprecated Gradio methods, gr.Inputs and gr.Outputs (28a7d4d77d46f30b4f2804bcd9e7b403bc189066)
Co-authored-by: Rezon Chakraborty <RezonChakraborty@users.noreply.huggingface.co>
app.py
CHANGED
|
@@ -480,14 +480,14 @@ def generate_funko_figurines(input_image):
|
|
| 480 |
imageComponent = gr.Image(type="filepath")
|
| 481 |
|
| 482 |
# Define Gradio input components
|
| 483 |
-
input_image = gr.
|
| 484 |
-
background_images = [gr.
|
| 485 |
|
| 486 |
# Create Gradio interface
|
| 487 |
gr.Interface(
|
| 488 |
fn=generate_funko_figurines,
|
| 489 |
inputs=imageComponent,
|
| 490 |
-
outputs=[gr.
|
| 491 |
title="Funko Figurine Generator",
|
| 492 |
description="Generate personalized Funko figurines with different styles and backgrounds.",
|
| 493 |
).launch()
|
|
|
|
| 480 |
imageComponent = gr.Image(type="filepath")
|
| 481 |
|
| 482 |
# Define Gradio input components
|
| 483 |
+
input_image = gr.Image(type="pil", label="Upload your image")
|
| 484 |
+
background_images = [gr.Image(type="pil", label="Background Image " + str(i + 1)) for i in range(3)]
|
| 485 |
|
| 486 |
# Create Gradio interface
|
| 487 |
gr.Interface(
|
| 488 |
fn=generate_funko_figurines,
|
| 489 |
inputs=imageComponent,
|
| 490 |
+
outputs=[gr.Image(type="pil", label="Generated Image " + str(i + 1)) for i in range(3)],
|
| 491 |
title="Funko Figurine Generator",
|
| 492 |
description="Generate personalized Funko figurines with different styles and backgrounds.",
|
| 493 |
).launch()
|