fantaxy commited on
Commit
09c6eaa
verified
1 Parent(s): fa469c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -69,26 +69,17 @@ examples = [
69
  ["A fantasy map of a fictional world, with detailed terrain and cities.", "q19.webp"]
70
  ]
71
 
72
-
73
  demo = gr.Interface(
74
  fn=respond,
75
  inputs=gr.Textbox(label="Enter your prompt for image generation"),
76
  outputs=gr.Image(label="Generated Image"),
77
- examples=examples,
 
 
78
  theme="Nymbo/Nymbo_Theme",
79
  css=css,
80
  cache_examples=False # 鞓堨牅 旌愳嫳 牍勴櫆靹表檾
81
  )
82
 
83
- # Examples 旎错彫雱岉姼 於旉皜
84
- image_examples = gr.Examples(
85
- examples=[[ex[0], f"{ex[1]}"] for ex in examples],
86
- inputs=demo.input_components[0],
87
- outputs=demo.output_components[0],
88
- fn=respond,
89
- cache_examples=False,
90
- label="Image Examples"
91
- )
92
-
93
  if __name__ == "__main__":
94
  demo.launch()
 
69
  ["A fantasy map of a fictional world, with detailed terrain and cities.", "q19.webp"]
70
  ]
71
 
 
72
  demo = gr.Interface(
73
  fn=respond,
74
  inputs=gr.Textbox(label="Enter your prompt for image generation"),
75
  outputs=gr.Image(label="Generated Image"),
76
+ examples=[
77
+ [example[0], example[1]] for example in examples
78
+ ],
79
  theme="Nymbo/Nymbo_Theme",
80
  css=css,
81
  cache_examples=False # 鞓堨牅 旌愳嫳 牍勴櫆靹表檾
82
  )
83
 
 
 
 
 
 
 
 
 
 
 
84
  if __name__ == "__main__":
85
  demo.launch()