Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def save_image(base64_str, image_format='png'):
|
|
| 18 |
def query_api(negative_prompt, positive_prompt):
|
| 19 |
# Prepare the headers and the JSON body of the request
|
| 20 |
headers = {
|
| 21 |
-
"Authorization": "Api-Key
|
| 22 |
}
|
| 23 |
json_data = {
|
| 24 |
'workflow_values': {
|
|
@@ -29,7 +29,7 @@ def query_api(negative_prompt, positive_prompt):
|
|
| 29 |
|
| 30 |
# Send the POST request
|
| 31 |
response = requests.post(
|
| 32 |
-
"https://
|
| 33 |
headers=headers,
|
| 34 |
json=json_data
|
| 35 |
)
|
|
|
|
| 18 |
def query_api(negative_prompt, positive_prompt):
|
| 19 |
# Prepare the headers and the JSON body of the request
|
| 20 |
headers = {
|
| 21 |
+
"Authorization": "Api-Key O7NlgQG7.9e3nxz7K4K3CakdBpSYkHNlGx5gOmaXb"
|
| 22 |
}
|
| 23 |
json_data = {
|
| 24 |
'workflow_values': {
|
|
|
|
| 29 |
|
| 30 |
# Send the POST request
|
| 31 |
response = requests.post(
|
| 32 |
+
"https://mmodel-5qe9kjp3.api.baseten.co/development/predict",
|
| 33 |
headers=headers,
|
| 34 |
json=json_data
|
| 35 |
)
|