RanM commited on
Commit
ef9b8ab
·
verified ·
1 Parent(s): 0d1f3db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -17,7 +17,6 @@ async def generate_image(prompt):
17
  # Check if the model returned images
18
  if isinstance(output.images, list) and len(output.images) > 0:
19
  image = output.images[0]
20
- gradio.Imageimage
21
  buffered = BytesIO()
22
  image.save(buffered, format="JPEG")
23
  image_bytes = buffered.getvalue()
@@ -68,8 +67,7 @@ gradio_interface = gr.Interface(
68
  ],
69
  outputs="json",
70
  concurrency_limit=20 # Set a high concurrency limit
71
- ).queue(default_concurrency_limit=20)
72
 
73
  if __name__ == "__main__":
74
  gradio_interface.launch() # No need for share=True for local testing
75
-
 
17
  # Check if the model returned images
18
  if isinstance(output.images, list) and len(output.images) > 0:
19
  image = output.images[0]
 
20
  buffered = BytesIO()
21
  image.save(buffered, format="JPEG")
22
  image_bytes = buffered.getvalue()
 
67
  ],
68
  outputs="json",
69
  concurrency_limit=20 # Set a high concurrency limit
70
+ ).queue(default_concurrency_limit=20)
71
 
72
  if __name__ == "__main__":
73
  gradio_interface.launch() # No need for share=True for local testing