prithivMLmods commited on
Commit
4301daf
1 Parent(s): 93a405d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -41,8 +41,8 @@ def check_text(prompt, negative=""):
41
  #html_file_url = "https://prithivmlmods-hamster-static.static.hf.space/index.html"
42
  #html_content = f'<iframe src="{html_file_url}" style="width:100%; height:180px; border:none;"></iframe>'
43
  #html_file_url = "https://prithivmlmods-static-loading-theme.static.hf.space/index.html"
44
- html_file_url = "https://playloader.vercel.app/"
45
- html_content = f'<iframe src="{html_file_url}" style="width:100%; height:400px; border:none"></iframe>'
46
 
47
 
48
 
@@ -234,8 +234,6 @@ DESCRIPTIONy = """
234
  """
235
 
236
 
237
-
238
-
239
  if not torch.cuda.is_available():
240
  DESCRIPTION += "\n<p>⚠️Running on CPU, This may not work on CPU.</p>"
241
 
@@ -373,6 +371,7 @@ css = '''
373
  .gradio-container{max-width: 600px !important}
374
  h1{text-align:center}
375
  '''
 
376
  #with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
377
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
378
  #with gr.Blocks(css=css, theme="Nymbo/Alyx_Theme") as demo:
@@ -432,7 +431,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
432
  label="Collage Template",
433
  )
434
 
435
-
436
  with gr.Accordion("Advanced options", open=False):
437
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True, visible=True)
438
  negative_prompt = gr.Text(
@@ -534,7 +532,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
534
  api_name="run",
535
  )
536
 
537
-
538
  # Adding a predefined gallery section
539
  gr.Markdown("### Generated Images")
540
  predefined_gallery = gr.Gallery(label="Generated Images", columns=3, show_label=False, value=load_predefined_images())
@@ -548,7 +545,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
548
  gr.Markdown("**Note:**")
549
  gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
550
 
551
- gr.HTML(html_content)
552
-
553
  if __name__ == "__main__":
554
  demo.queue(max_size=40).launch()
 
41
  #html_file_url = "https://prithivmlmods-hamster-static.static.hf.space/index.html"
42
  #html_content = f'<iframe src="{html_file_url}" style="width:100%; height:180px; border:none;"></iframe>'
43
  #html_file_url = "https://prithivmlmods-static-loading-theme.static.hf.space/index.html"
44
+ #html_file_url = ""
45
+ #html_content = f'<iframe src="{html_file_url}" style="width:100%; height:400px; border:none"></iframe>'
46
 
47
 
48
 
 
234
  """
235
 
236
 
 
 
237
  if not torch.cuda.is_available():
238
  DESCRIPTION += "\n<p>⚠️Running on CPU, This may not work on CPU.</p>"
239
 
 
371
  .gradio-container{max-width: 600px !important}
372
  h1{text-align:center}
373
  '''
374
+
375
  #with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
376
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
377
  #with gr.Blocks(css=css, theme="Nymbo/Alyx_Theme") as demo:
 
431
  label="Collage Template",
432
  )
433
 
 
434
  with gr.Accordion("Advanced options", open=False):
435
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True, visible=True)
436
  negative_prompt = gr.Text(
 
532
  api_name="run",
533
  )
534
 
 
535
  # Adding a predefined gallery section
536
  gr.Markdown("### Generated Images")
537
  predefined_gallery = gr.Gallery(label="Generated Images", columns=3, show_label=False, value=load_predefined_images())
 
545
  gr.Markdown("**Note:**")
546
  gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
547
 
548
+ #gr.HTML(html_content)
 
549
  if __name__ == "__main__":
550
  demo.queue(max_size=40).launch()