Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import os
|
|
6 |
from deep_translator import GoogleTranslator
|
7 |
|
8 |
# آدرس API مدل Stable Diffusion
|
9 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
10 |
headers = {
|
11 |
"Authorization": f"Bearer {os.environ.get('HF_TOKEN')}" # توکن را در Secrets تنظیم کن
|
12 |
}
|
|
|
6 |
from deep_translator import GoogleTranslator
|
7 |
|
8 |
# آدرس API مدل Stable Diffusion
|
9 |
+
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
10 |
headers = {
|
11 |
"Authorization": f"Bearer {os.environ.get('HF_TOKEN')}" # توکن را در Secrets تنظیم کن
|
12 |
}
|