Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
|
|
84 |
else:
|
85 |
# Если произошла ошибка, возвращаем сообщение об ошибке
|
86 |
print(f"Error: {response.status_code} - {response.text}")
|
87 |
-
API_TOKEN =
|
88 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
89 |
language = detect(prompt)
|
90 |
|
|
|
84 |
else:
|
85 |
# Если произошла ошибка, возвращаем сообщение об ошибке
|
86 |
print(f"Error: {response.status_code} - {response.text}")
|
87 |
+
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
88 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
89 |
language = detect(prompt)
|
90 |
|