Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def main():
|
|
48 |
if user_input:
|
49 |
|
50 |
for name, url in AWS_checkpoints.items():
|
51 |
-
headers={'x-api-key': key}
|
52 |
|
53 |
input_data = json.dumps({'inputs':user_input})
|
54 |
r = requests.get(url,data=input_data,headers=headers)
|
|
|
48 |
if user_input:
|
49 |
|
50 |
for name, url in AWS_checkpoints.items():
|
51 |
+
headers={'x-api-key': st.secrets['aws-key']}
|
52 |
|
53 |
input_data = json.dumps({'inputs':user_input})
|
54 |
r = requests.get(url,data=input_data,headers=headers)
|