Jonny001 commited on
Commit
f7420b8
1 Parent(s): bce0716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -7,13 +7,14 @@ def generate_image(text):
7
  print(f"Using example: {text}")
8
  return model(text)
9
 
10
- examples = ["Humanoid Cat Warrior, Full View"]
11
 
12
  interface = gr.Interface(
13
- model,
14
- inputs=gr.Textbox(label="Type your imagination:", examples=examples),
15
- outputs=gr.Image(label="Gen Image"),
 
16
  theme="NoCrypt/miku",
17
  )
18
 
19
- interface.launch()
 
7
  print(f"Using example: {text}")
8
  return model(text)
9
 
10
+ examples = [["Humanoid Cat Warrior, Full View"]]
11
 
12
  interface = gr.Interface(
13
+ fn=generate_image,
14
+ inputs=gr.Textbox(label="Type your imagination:"),
15
+ outputs=gr.Image(label="Generated Image"),
16
+ examples=examples,
17
  theme="NoCrypt/miku",
18
  )
19
 
20
+ interface.launch()