prithivMLmods commited on
Commit
3c196c1
·
verified ·
1 Parent(s): 69b4a4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -13
app.py CHANGED
@@ -9,25 +9,17 @@ import spaces
9
  import torch
10
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
11
 
12
- # Load the HTML content
13
- #html_file_url = "https://prithivmlmods-hamster-static.static.hf.space/index.html"
14
- #html_content = f'<iframe src="{html_file_url}" style="width:100%; height:200px; border:none;></iframe>'
15
 
16
 
17
- #DESCRIPTIONx = """## STABLE HAMSTER
18
- #"""
19
-
20
- # Load the uploaded image content
21
- html_image_path = "https://prithivmlmods-hamster-static.static.hf.space/index.html"
22
-
23
  DESCRIPTIONx = """<div style="display: flex; align-items: center; justify-content: space-between;">
24
  <h1 style="margin: 0;">STABLE HAMSTER</h1>
25
- <img src="https://prithivmlmods-hamster-static.static.hf.space/index.html" style="width: 100px; height: auto; margin-left: 20px;">
26
- </div>
27
  """
28
 
29
 
30
- # Use environment variables for flexibility
31
  MODEL_ID = os.getenv("MODEL_REPO")
32
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "4096"))
33
  USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE", "0") == "1"
@@ -128,7 +120,7 @@ footer {
128
  '''
129
 
130
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
131
- #gr.HTML(html_content)# Add the HTML content here
132
  gr.Markdown(DESCRIPTIONx)
133
  with gr.Group():
134
  with gr.Row():
 
9
  import torch
10
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
11
 
12
+ #Load the HTML content
13
+ html_file_url = "https://prithivmlmods-hamster-static.static.hf.space/index.html"
14
+ html_content = f'<iframe src="{html_file_url}" style="width: 100px; height: auto; margin-left: 20px;></iframe>'
15
 
16
 
 
 
 
 
 
 
17
  DESCRIPTIONx = """<div style="display: flex; align-items: center; justify-content: space-between;">
18
  <h1 style="margin: 0;">STABLE HAMSTER</h1>
 
 
19
  """
20
 
21
 
22
+ #Use environment variables for flexibility
23
  MODEL_ID = os.getenv("MODEL_REPO")
24
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "4096"))
25
  USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE", "0") == "1"
 
120
  '''
121
 
122
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
123
+ gr.HTML(html_content)
124
  gr.Markdown(DESCRIPTIONx)
125
  with gr.Group():
126
  with gr.Row():