Spaces:
Runtime error
Runtime error
Commit
·
ff4ae85
1
Parent(s):
f1fefb3
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
|
|
| 15 |
if current_model == "SD-1.5":
|
| 16 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
| 17 |
|
|
|
|
| 18 |
API_TOKEN = os.environ.get("HF_READ_TOKEN")
|
| 19 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
| 20 |
|
|
@@ -183,7 +184,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 183 |
|
| 184 |
favicon = '<img src="" width="48px" style="display: inline">'
|
| 185 |
gr.Markdown(
|
| 186 |
-
f"""<h1><center>{favicon}
|
| 187 |
"""
|
| 188 |
)
|
| 189 |
|
|
|
|
| 15 |
if current_model == "SD-1.5":
|
| 16 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
| 17 |
|
| 18 |
+
|
| 19 |
API_TOKEN = os.environ.get("HF_READ_TOKEN")
|
| 20 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
| 21 |
|
|
|
|
| 184 |
|
| 185 |
favicon = '<img src="" width="48px" style="display: inline">'
|
| 186 |
gr.Markdown(
|
| 187 |
+
f"""<h1><center>{favicon} Stable Diffusion v15</center></h1>
|
| 188 |
"""
|
| 189 |
)
|
| 190 |
|