Max KHANOV
commited on
Commit
·
913c08c
1
Parent(s):
3738039
Fix syntax error
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ ENDPOINT = f"{GROK_URL}/model"
|
|
| 19 |
|
| 20 |
if trigger:
|
| 21 |
req = requests.get(ENDPOINT, params={"weight": weight, "k": k, "text": text, "ngrok-skip-browser-warning": "1"})
|
| 22 |
-
if req.status_code == 200
|
| 23 |
result = req.text
|
| 24 |
else:
|
| 25 |
result = "Sorry, an error occured!"
|
|
|
|
| 19 |
|
| 20 |
if trigger:
|
| 21 |
req = requests.get(ENDPOINT, params={"weight": weight, "k": k, "text": text, "ngrok-skip-browser-warning": "1"})
|
| 22 |
+
if req.status_code == 200:
|
| 23 |
result = req.text
|
| 24 |
else:
|
| 25 |
result = "Sorry, an error occured!"
|