RolandZ commited on
Commit
c3b9c17
1 Parent(s): 33bdd7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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=["text", "text"], outputs=["image"]).queue(concurrency_count=100, api_open=False).launch(show_api=False, show_error=False)
 
 
 
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()