DIVY118 commited on
Commit
54004c6
·
verified ·
1 Parent(s): 58a0bf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
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')
90
  }
91
 
92
  return jsonify(result)