Updated app.py file by removing the deprecated Gradio methods, gr.Inputs and gr.Outputs

#2
Files changed (1) hide show
  1. app.py +3 -3
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.inputs.Image(type="pil", label="Upload your image")
484
- background_images = [gr.inputs.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.outputs.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()
 
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()