Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -31,7 +31,7 @@ def server_app():
|
|
31 |
return 'llamafile.start()'
|
32 |
|
33 |
@app.route('/')
|
34 |
-
|
35 |
|
36 |
output = await query({
|
37 |
"inputs": {
|
@@ -76,7 +76,7 @@ def threadserver():
|
|
76 |
|
77 |
|
78 |
async def query(data):
|
79 |
-
response = requests.post(API_URL, headers=headers, json=data)
|
80 |
return response.json()
|
81 |
|
82 |
|
|
|
31 |
return 'llamafile.start()'
|
32 |
|
33 |
@app.route('/')
|
34 |
+
def server_home():
|
35 |
|
36 |
output = await query({
|
37 |
"inputs": {
|
|
|
76 |
|
77 |
|
78 |
async def query(data):
|
79 |
+
response = await requests.post(API_URL, headers=headers, json=data)
|
80 |
return response.json()
|
81 |
|
82 |
|