Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ from deep_translator import GoogleTranslator
|
|
9 |
from gradio_client import Client
|
10 |
|
11 |
# os.makedirs('assets', exist_ok=True)
|
12 |
-
if not os.path.exists('icon.
|
13 |
-
os.system("wget -O icon.
|
14 |
API_URL_DEV = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
15 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
16 |
timeout = 100
|
@@ -103,9 +103,9 @@ body {
|
|
103 |
max-width: 600px;
|
104 |
margin-left: auto;
|
105 |
margin-right: auto;
|
106 |
-
background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white */
|
107 |
padding: 20px;
|
108 |
border-radius: 10px;
|
|
|
109 |
}
|
110 |
#title-container {
|
111 |
display: flex;
|
@@ -134,6 +134,14 @@ css1 = """
|
|
134 |
align-items: center;
|
135 |
justify-content: center;
|
136 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
#title-icon {
|
138 |
width: 32px; /* Adjust the width of the icon as needed */
|
139 |
height: auto;
|
|
|
9 |
from gradio_client import Client
|
10 |
|
11 |
# os.makedirs('assets', exist_ok=True)
|
12 |
+
if not os.path.exists('icon.png'):
|
13 |
+
os.system("wget -O icon.png https://i.pinimg.com/564x/64/49/88/644988c59447eb00286834c2e70fdd6b.jpg")
|
14 |
API_URL_DEV = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
15 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
16 |
timeout = 100
|
|
|
103 |
max-width: 600px;
|
104 |
margin-left: auto;
|
105 |
margin-right: auto;
|
|
|
106 |
padding: 20px;
|
107 |
border-radius: 10px;
|
108 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
109 |
}
|
110 |
#title-container {
|
111 |
display: flex;
|
|
|
134 |
align-items: center;
|
135 |
justify-content: center;
|
136 |
}
|
137 |
+
#app-container {
|
138 |
+
max-width: 600px;
|
139 |
+
margin-left: auto;
|
140 |
+
margin-right: auto;
|
141 |
+
background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white */
|
142 |
+
padding: 20px;
|
143 |
+
border-radius: 10px;
|
144 |
+
}
|
145 |
#title-icon {
|
146 |
width: 32px; /* Adjust the width of the icon as needed */
|
147 |
height: auto;
|