Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,5 +22,8 @@ def genImage(character_name, description_of_the_character):
|
|
22 |
image = Image.open(io.BytesIO(image_bytes))
|
23 |
return image
|
24 |
|
25 |
-
demo = gr.Interface(genImage, inputs=[
|
|
|
|
|
|
|
26 |
demo.launch()
|
|
|
22 |
image = Image.open(io.BytesIO(image_bytes))
|
23 |
return image
|
24 |
|
25 |
+
demo = gr.Interface(genImage, inputs=[
|
26 |
+
gr.Textbox(lines=1, placeholder="Name your character",label="character name"),
|
27 |
+
gr.Textbox(lines=3, placeholder="describe your character",label="description of your character")
|
28 |
+
], outputs=["image"]).queue(concurrency_count=100, api_open=False).launch(show_api=False, show_error=False)
|
29 |
demo.launch()
|