Spaces:
Runtime error
Runtime error
Commit
·
9836350
1
Parent(s):
2a97bbe
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ import random
|
|
5 |
import os
|
6 |
from PIL import Image
|
7 |
|
8 |
-
API_URL =
|
9 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
10 |
-
headers = {"Authorization": "Bearer {API_TOKEN}"}
|
11 |
|
12 |
|
13 |
def query(prompt, is_negative=False, image_style="None style", steps=8, cfg_scale=7, seed=None, num_images=4):
|
@@ -164,6 +164,7 @@ css = """
|
|
164 |
#share-btn-container .wrap {
|
165 |
display: none !important;
|
166 |
}
|
|
|
167 |
.gr-form{
|
168 |
flex: 1 1 50%; border-top-right-radius: 0; border-bottom-right-radius: 0;
|
169 |
}
|
@@ -176,7 +177,7 @@ css = """
|
|
176 |
"""
|
177 |
|
178 |
with gr.Blocks(css=css) as demo:
|
179 |
-
favicon = '<img src="
|
180 |
gr.Markdown(
|
181 |
f"""<h1><center>{favicon} Stable Diffusion V2.1</center></h1>
|
182 |
"""
|
|
|
5 |
import os
|
6 |
from PIL import Image
|
7 |
|
8 |
+
API_URL = os.getenv("API_URL")
|
9 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
10 |
+
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
11 |
|
12 |
|
13 |
def query(prompt, is_negative=False, image_style="None style", steps=8, cfg_scale=7, seed=None, num_images=4):
|
|
|
164 |
#share-btn-container .wrap {
|
165 |
display: none !important;
|
166 |
}
|
167 |
+
|
168 |
.gr-form{
|
169 |
flex: 1 1 50%; border-top-right-radius: 0; border-bottom-right-radius: 0;
|
170 |
}
|
|
|
177 |
"""
|
178 |
|
179 |
with gr.Blocks(css=css) as demo:
|
180 |
+
favicon = '<img src="" width="48px" style="display: inline">'
|
181 |
gr.Markdown(
|
182 |
f"""<h1><center>{favicon} Stable Diffusion V2.1</center></h1>
|
183 |
"""
|