Update app.py
Browse files
app.py
CHANGED
@@ -10,13 +10,23 @@ 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 |
# Use environment variables for flexibility
|
21 |
MODEL_ID = os.getenv("MODEL_REPO")
|
22 |
MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "4096"))
|
@@ -118,7 +128,7 @@ footer {
|
|
118 |
'''
|
119 |
|
120 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
121 |
-
gr.HTML(html_content)# Add the HTML content here
|
122 |
gr.Markdown(DESCRIPTIONx)
|
123 |
with gr.Group():
|
124 |
with gr.Row():
|
|
|
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"))
|
|
|
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():
|