RolandZ commited on
Commit
deac1cf
·
1 Parent(s): 7115312

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -22,8 +22,17 @@ 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
  gr.Textbox(lines=1, placeholder="Name your character",label="character name"),
27
  gr.Textbox(lines=4, 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()
 
22
  image = Image.open(io.BytesIO(image_bytes))
23
  return image
24
 
25
+ demo = gr.Interface(genImage,
26
+ title="Bing Image Creator",
27
+ description="AI disney poster creator by https://www.bingimagecreator.net",
28
+ inputs=[
29
  gr.Textbox(lines=1, placeholder="Name your character",label="character name"),
30
  gr.Textbox(lines=4, placeholder="Describe your character",label="description of your character")
31
+ ], outputs=["image"], examples=[
32
+ ["Mickey Mouse", "An anthropomorphic mouse who typically wears red shorts, large yellow shoes, and white gloves, Mickey is one of the world's most recognizable fictional characters."],
33
+ ["Donald Duck", "An anthropomorphic white duck with a yellow-orange bill, legs, and feet. He typically wears a sailor shirt and cap with a bow tie."],
34
+ ["Goofy", "A tall, anthropomorphic dog who typically wears a turtle neck and vest, with pants, shoes, white gloves, and a tall hat originally designed as a rumpled fedora."]
35
+ ]).queue(concurrency_count=100, api_open=False).launch(show_api=False, show_error=False)
36
+
37
+
38
  demo.launch()