Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def generate(description):
|
|
21 |
}
|
22 |
|
23 |
try:
|
24 |
-
response = requests.post(f'{os.getenv("BASE_URL")}/v1/chat/completions', headers=headers, json=payload,
|
25 |
response.raise_for_status() # Проверяем на ошибки HTTP
|
26 |
|
27 |
full_text = ""
|
|
|
21 |
}
|
22 |
|
23 |
try:
|
24 |
+
response = requests.post(f'{os.getenv("BASE_URL")}/v1/chat/completions', headers=headers, json=payload, timeout=200)
|
25 |
response.raise_for_status() # Проверяем на ошибки HTTP
|
26 |
|
27 |
full_text = ""
|