Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -23,7 +23,7 @@ app = Flask(__name__)
|
|
23 |
|
24 |
@app.route('/')
|
25 |
async def command_app():
|
26 |
-
res = await tool.run("Obama's first name?")
|
27 |
|
28 |
payload ={
|
29 |
"inputs": {
|
@@ -34,7 +34,7 @@ async def command_app():
|
|
34 |
"Today is a sunny day"]},}
|
35 |
|
36 |
print(payload)
|
37 |
-
print(res)
|
38 |
response = await requests.post(API_URL, headers=headers, json=payload)
|
39 |
print(response)
|
40 |
return response.json()
|
|
|
23 |
|
24 |
@app.route('/')
|
25 |
async def command_app():
|
26 |
+
#res = await tool.run("Obama's first name?")
|
27 |
|
28 |
payload ={
|
29 |
"inputs": {
|
|
|
34 |
"Today is a sunny day"]},}
|
35 |
|
36 |
print(payload)
|
37 |
+
#print(res)
|
38 |
response = await requests.post(API_URL, headers=headers, json=payload)
|
39 |
print(response)
|
40 |
return response.json()
|