Ngene787 commited on
Commit
5080ca8
·
1 Parent(s): b38dddf

feat: change the layout the web

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -116,9 +116,6 @@ with gr.Blocks(theme=theme, css=css) as demo:
116
  value=100,
117
  )
118
 
119
- # gr.Examples(examples=[], inputs=[seed_1], outputs=[result_1, seed_1], fn=inference_unconditional,
120
- # cache_examples=True, cache_mode="lazy")
121
-
122
  gr.Markdown("---")
123
  with gr.Row():
124
  gr.Markdown("## Part 2. Class Guidance Face Generation")
@@ -151,10 +148,6 @@ with gr.Blocks(theme=theme, css=css) as demo:
151
  value=100,
152
  )
153
 
154
- # gr.Examples(examples=[], inputs=[gender_select_radio], outputs=[result_2, seed_2],
155
- # fn=inference_class_guidance,
156
- # cache_examples=True, cache_mode="lazy")
157
-
158
  gr.Markdown("---")
159
  gr.Markdown("## Part 3. Text-to-Face Generation")
160
  with gr.Row():
@@ -250,6 +243,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
250
  triggers=[run_button_3.click, prompt.submit],
251
  fn=inference_sd,
252
  inputs=[
 
253
  negative_prompt,
254
  seed_3,
255
  randomize_seed_3,
@@ -262,4 +256,4 @@ with gr.Blocks(theme=theme, css=css) as demo:
262
  if __name__ == "__main__":
263
  with timer("All tasks"):
264
  # demo.launch(mcp_server=True)
265
- demo.launch(share=True, allowed_paths=["./"], ssr_mode=False)
 
116
  value=100,
117
  )
118
 
 
 
 
119
  gr.Markdown("---")
120
  with gr.Row():
121
  gr.Markdown("## Part 2. Class Guidance Face Generation")
 
148
  value=100,
149
  )
150
 
 
 
 
 
151
  gr.Markdown("---")
152
  gr.Markdown("## Part 3. Text-to-Face Generation")
153
  with gr.Row():
 
243
  triggers=[run_button_3.click, prompt.submit],
244
  fn=inference_sd,
245
  inputs=[
246
+ prompt,
247
  negative_prompt,
248
  seed_3,
249
  randomize_seed_3,
 
256
  if __name__ == "__main__":
257
  with timer("All tasks"):
258
  # demo.launch(mcp_server=True)
259
+ demo.launch(share=True, allowed_paths=["./"])