Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,14 +9,14 @@ from huggingface_hub import InferenceClient
|
|
9 |
from deep_translator import GoogleTranslator
|
10 |
from gradio_client import Client
|
11 |
import logging
|
12 |
-
from datetime
|
13 |
# os.makedirs('assets', exist_ok=True)
|
14 |
if not os.path.exists('icon.png'):
|
15 |
os.system("wget -O icon.png https://i.pinimg.com/564x/64/49/88/644988c59447eb00286834c2e70fdd6b.jpg")
|
16 |
API_URL_DEV = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
17 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
18 |
timeout = 100
|
19 |
-
|
20 |
|
21 |
# Set up logging
|
22 |
logging.basicConfig(filename='access.log', level=logging.INFO,
|
|
|
9 |
from deep_translator import GoogleTranslator
|
10 |
from gradio_client import Client
|
11 |
import logging
|
12 |
+
from datetime import datetime
|
13 |
# os.makedirs('assets', exist_ok=True)
|
14 |
if not os.path.exists('icon.png'):
|
15 |
os.system("wget -O icon.png https://i.pinimg.com/564x/64/49/88/644988c59447eb00286834c2e70fdd6b.jpg")
|
16 |
API_URL_DEV = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
17 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
18 |
timeout = 100
|
19 |
+
|
20 |
|
21 |
# Set up logging
|
22 |
logging.basicConfig(filename='access.log', level=logging.INFO,
|