K00B404 commited on
Commit
9039fb1
1 Parent(s): c6c047c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -6,6 +6,10 @@ import os
6
  from PIL import Image
7
  from deep_translator import GoogleTranslator
8
 
 
 
 
 
9
  API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
10
  timeout = 100
11
 
 
6
  from PIL import Image
7
  from deep_translator import GoogleTranslator
8
 
9
+ os.makedirs('assets', exist_ok=True)
10
+ if not os.path.exist('assets/icon.jpg')
11
+ os.system("wget -O assets/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
15