Rooc commited on
Commit
78fe0b4
·
verified ·
1 Parent(s): 8fa2633

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +56 -13
app.py CHANGED
@@ -60,12 +60,8 @@ with gr.Blocks(css=css) as demo:
60
  selected_space_index = gr.State(0);
61
 
62
  with gr.Column(elem_id="col-container"):
63
- gr.Markdown(f"""# FLUX.1 [schnell]
64
- [black-forest-labs/FLUX.1-schnell](https://huggingface.co/spaces/black-forest-labs/FLUX.1-schnell)
65
- 12B param rectified flow transformer distilled from [FLUX.1 [pro]](https://blackforestlabs.ai/) for 4 step generation
66
- [[blog](https://blackforestlabs.ai/2024/07/31/announcing-black-forest-labs/)] [[model](https://huggingface.co/black-forest-labs/FLUX.1-schnell)]
67
- """)
68
- space = gr.Radio(flux_1_schell_spaces, label="HF Space", value=flux_1_schell_spaces[0])
69
 
70
 
71
  with gr.Row():
@@ -121,14 +117,16 @@ with gr.Blocks(css=css) as demo:
121
  step=1,
122
  value=4,
123
  )
 
 
124
 
125
- # gr.Examples(
126
- # examples = examples,
127
- # fn = infer,
128
- # inputs = [selected_space_index, prompt],
129
- # outputs = [selected_space_index, space, result, seed],
130
- # cache_examples="lazy"
131
- # )
132
 
133
  gr.on(
134
  triggers=[run_button.click, prompt.submit],
@@ -136,5 +134,50 @@ with gr.Blocks(css=css) as demo:
136
  inputs = [space, prompt, seed, randomize_seed, width, height, num_inference_steps],
137
  outputs = [result, seed]
138
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
140
  demo.launch()
 
60
  selected_space_index = gr.State(0);
61
 
62
  with gr.Column(elem_id="col-container"):
63
+
64
+ space = gr.Radio(flux_1_schell_spaces, label="Choose Your Flux Model", value=flux_1_schell_spaces[0])
 
 
 
 
65
 
66
 
67
  with gr.Row():
 
117
  step=1,
118
  value=4,
119
  )
120
+
121
+
122
 
123
+ gr.Examples(
124
+ examples = examples,
125
+ fn = infer,
126
+ inputs = [selected_space_index, prompt],
127
+ outputs = [selected_space_index, space, result, seed],
128
+ cache_examples="lazy"
129
+ )
130
 
131
  gr.on(
132
  triggers=[run_button.click, prompt.submit],
 
134
  inputs = [space, prompt, seed, randomize_seed, width, height, num_inference_steps],
135
  outputs = [result, seed]
136
  )
137
+ <div class="footer">
138
+ <p>
139
+ Best AI Tools •
140
+ <a href="https://nudeai.beauty" target="_blank">Nude AI</a> •
141
+ <a href="https://uncensoredai.cc" target="_blank">Uncensored AI</a> •
142
+ <a href="https://aihentaigenerator.fun" target="_blank">AI Hentai Generator</a> •
143
+ <a href="https://stable-diffusion-hentai.aihentaigenerator.fun" target="_blank">Stable Diffusion Hentai</a> •
144
+ <a href="https://bingimagecreator.online" target="_blank">Bing Image Creator</a> •
145
+ <a href="https://nsfwaiart.art" target="_blank">NSFW AI Art</a> •
146
+ <a href="https://nsfw-ai-chatbot.online" target="_blank">NSFW AI Chatbot</a> •
147
+ <a href="https://nsfwai.world" target="_blank">NSFW AI Directory</a> •
148
+ <a href="https://aitoolsdirectory.online" target="_blank">AI Tools Directory</a> •
149
+ <a href="https://viggleai.live" target="_blank">Viggle AI</a> •
150
+ <a href="https://chatgpt4o.space" target="_blank">ChatGPT 4o Free</a> •
151
+ <a href="https://tdeecalculator.online" target="_blank">TDEE Calculator</a> •
152
+ <a href="https://calculatorapp.online" target="_blank">Calculator App</a> •
153
+ <a href="https://compoundinterestcalculator.site" target="_blank">Compound Interest Calculator</a> •
154
+ <a href="https://aistorygenerator.fun" target="_blank">AI Story Generator</a> •
155
+ <a href="https://llamaai.online" target="_blank">Free Online Llama AI</a> •
156
+ <a href="https://aiartfree.online" target="_blank">Free AI Art Generator</a> •
157
+ <a href="https://cekkhodam.co/" target="_blank">Cek Khodam</a> •
158
+ <a href="https://ai-detector.online" target="_blank">AI Detector</a> •
159
+ <a href="https://aicover.fun" target="_blank">AI Cover</a> •
160
+ <a href="https://flux-ai.online/" target="_blank">Flux AI Image Generator</a> •
161
+ <a href="https://bratgenerator.org" target="_blank">Brat Generator</a> •
162
+ <a href="https://aitextgenerator.live" target="_blank">AI Text Generator</a> •
163
+ <a href="https://blackmythwukong.buzz" target="_blank">Black Myth Wukong Guide</a> •
164
+ <a href="https://booksummary.wiki" target="_blank">Book Summary</a> •
165
+ <a href="https://chatgptgratuit.chat" target="_blank">ChatGPT Gratuit</a> •
166
+ <a href="https://chatgptgratuito.online/" target="_blank">Chat GPT Gratuito</a> •
167
+ <a href="https://chatgtponline.com/" target="_blank">Chat GTP</a> •
168
+ <a href="https://gauthai.pro/" target="_blank">Gauth AI</a> •
169
+ <a href="https://bestrecipe.pro/" target="_blank">Best Recipe</a> •
170
+ <a href="https://cookie-clicker-unblocked.pro/" target="_blank">Cookie Clicker Unblocked</a> •
171
+ <a href="https://freakyfont.org/" target="_blank">Freaky Font</a> •
172
+ <a href="https://chatgratuito.online" target="_blank">Chat Gratuito</a> •
173
+ <a href="https://incrediboxsprunki.pro" target="_blank">Incredibox Sprunki</a> •
174
+ <a href="https://motox3munblocked.pro" target="_blank">Moto X3M Unblocked</a> •
175
+ <a href="https://parkourcivilization.pro" target="_blank">Parkour Civilization</a> •
176
+ <a href="https://sledrider3d.com" target="_blank">Sled Rider 3D</a> •
177
+ <a href="https://snow-rider-3d.pro" target="_blank">Snow Rider 3D</a> •
178
+ <a href="https://sprunkigame.pro" target="_blank">Sprunki Game</a> •
179
+ <a href="https://stickmanhookunblocked.pro" target="_blank">Stickman Hook Unblocked</a> •
180
+
181
+ </p>
182
 
183
  demo.launch()