Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def IMGEN():
|
|
| 86 |
headers = {"Authorization": f"Bearer {key}"}
|
| 87 |
|
| 88 |
result = {
|
| 89 |
-
'response': requests.post(API_URL, headers=headers, json={"inputs": prompt,}).content.decode('utf-8')
|
| 90 |
}
|
| 91 |
|
| 92 |
return jsonify(result)
|
|
|
|
| 86 |
headers = {"Authorization": f"Bearer {key}"}
|
| 87 |
|
| 88 |
result = {
|
| 89 |
+
'response': requests.post(API_URL, headers=headers, json={"inputs": prompt,}).content.decode('utf-8', 'ignore')
|
| 90 |
}
|
| 91 |
|
| 92 |
return jsonify(result)
|