Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,22 +72,12 @@ def weather():
|
|
| 72 |
def health():
|
| 73 |
return jsonify({'status': 'running', 'message': 'GridLock search API'})
|
| 74 |
|
| 75 |
-
def safe_shift_decode(text, shift):
|
| 76 |
-
out = []
|
| 77 |
-
for ch in text:
|
| 78 |
-
code = ord(ch)
|
| 79 |
-
if 32 <= code <= 126:
|
| 80 |
-
new = 32 + ((code - 32 - shift) % 95)
|
| 81 |
-
out.append(chr(new))
|
| 82 |
-
else:
|
| 83 |
-
out.append(ch)
|
| 84 |
-
return ''.join(out)
|
| 85 |
-
|
| 86 |
def morsify_key():
|
| 87 |
prefix = "nvapi-"
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
|
|
|
| 91 |
|
| 92 |
@app.route('/v1/chat/completions', methods=['POST'])
|
| 93 |
def chat_completions():
|
|
|
|
| 72 |
def health():
|
| 73 |
return jsonify({'status': 'running', 'message': 'GridLock search API'})
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
def morsify_key():
|
| 76 |
prefix = "nvapi-"
|
| 77 |
+
middle = "wVHkDYJuia_uT9-_4e4kSQ6c0_WO9N9BPPHh9FFPieoO6UK5ibCSAdiZRv_q7y"
|
| 78 |
+
end1 = "y"
|
| 79 |
+
end2 = "f"
|
| 80 |
+
return prefix + middle + end1 + end2
|
| 81 |
|
| 82 |
@app.route('/v1/chat/completions', methods=['POST'])
|
| 83 |
def chat_completions():
|