Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,9 @@ import os
|
|
6 |
from PIL import Image
|
7 |
from deep_translator import GoogleTranslator
|
8 |
|
9 |
-
os.makedirs('assets', exist_ok=True)
|
10 |
-
if not os.path.exists('
|
11 |
-
os.system("wget -O
|
12 |
|
13 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
14 |
timeout = 100
|
@@ -105,11 +105,11 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
105 |
<center>
|
106 |
<div id="title-container">
|
107 |
<img id="title-icon" src="icon.jpg" alt="Icon">
|
108 |
-
<h1 id="title-text">FLUX
|
109 |
</div>
|
110 |
</center>
|
111 |
""")
|
112 |
-
|
113 |
with gr.Column(elem_id="app-container"):
|
114 |
with gr.Row():
|
115 |
with gr.Column(elem_id="prompt-container"):
|
|
|
6 |
from PIL import Image
|
7 |
from deep_translator import GoogleTranslator
|
8 |
|
9 |
+
#os.makedirs('assets', exist_ok=True)
|
10 |
+
if not os.path.exists('icon.jpg'):
|
11 |
+
os.system("wget -O icon.jpg https://i.pinimg.com/564x/64/49/88/644988c59447eb00286834c2e70fdd6b.jpg")
|
12 |
|
13 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
14 |
timeout = 100
|
|
|
105 |
<center>
|
106 |
<div id="title-container">
|
107 |
<img id="title-icon" src="icon.jpg" alt="Icon">
|
108 |
+
<h1 id="title-text">FLUX Capacitor</h1>
|
109 |
</div>
|
110 |
</center>
|
111 |
""")
|
112 |
+
|
113 |
with gr.Column(elem_id="app-container"):
|
114 |
with gr.Row():
|
115 |
with gr.Column(elem_id="prompt-container"):
|