dlaima commited on
Commit
4dc4a68
·
verified ·
1 Parent(s): 6e11943

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -53,15 +53,15 @@ def launch(input_image):
53
  print(f"Error processing the image: {str(e)}")
54
  return "An error occurred while processing the image."
55
 
56
-
57
-
58
  # Define the Gradio interface
59
  iface = gr.Interface(
60
  fn=launch,
61
- inputs=gr.Image(type="pil"), # Ensure input is PIL image
62
- outputs=gr.Image(type="pil") # Output is also in PIL format
63
  )
64
 
 
 
65
  # Launch the interface
66
  iface.launch()
67
 
 
53
  print(f"Error processing the image: {str(e)}")
54
  return "An error occurred while processing the image."
55
 
 
 
56
  # Define the Gradio interface
57
  iface = gr.Interface(
58
  fn=launch,
59
+ inputs=gr.Image(type="pil"),
60
+ outputs=gr.Image(type="pil", image_size=(640, 480)) # Specify size for output
61
  )
62
 
63
+
64
+
65
  # Launch the interface
66
  iface.launch()
67