ghengx
commited on
Commit
·
f4aa5ca
1
Parent(s):
a3a920d
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,10 +16,10 @@ def response_generator(query):
|
|
| 16 |
word = ''
|
| 17 |
|
| 18 |
res =requests.post(
|
| 19 |
-
f
|
| 20 |
headers={
|
| 21 |
'Content-Type': 'application/json',
|
| 22 |
-
'Authorization': f
|
| 23 |
},
|
| 24 |
json={
|
| 25 |
"inputs": {},
|
|
|
|
| 16 |
word = ''
|
| 17 |
|
| 18 |
res =requests.post(
|
| 19 |
+
f"{os.environ['api_url']}",
|
| 20 |
headers={
|
| 21 |
'Content-Type': 'application/json',
|
| 22 |
+
'Authorization': f"Bearer {os.environ['api_key']}"
|
| 23 |
},
|
| 24 |
json={
|
| 25 |
"inputs": {},
|