Spaces:
Runtime error
Runtime error
Commit
·
faaaa67
1
Parent(s):
ce45728
Update app.py
Browse files
app.py
CHANGED
@@ -214,6 +214,7 @@ def diffuser():
|
|
214 |
enableHiresFix = str(request.form['enableHiresFix'])
|
215 |
width = request.form['width']
|
216 |
height = request.form['height']
|
|
|
217 |
payload = json.dumps({
|
218 |
"prompt": prompt,
|
219 |
"negativePrompt": negativePrompt,
|
@@ -224,7 +225,7 @@ def diffuser():
|
|
224 |
"model": "lexica-aperture-v2",
|
225 |
"numImagesGenerated": 0,
|
226 |
"id": visitorId,
|
227 |
-
"requestId":
|
228 |
})
|
229 |
headers = {
|
230 |
'authority': 'z.lexica.art',
|
|
|
214 |
enableHiresFix = str(request.form['enableHiresFix'])
|
215 |
width = request.form['width']
|
216 |
height = request.form['height']
|
217 |
+
myuuid = uuid.uuid4()
|
218 |
payload = json.dumps({
|
219 |
"prompt": prompt,
|
220 |
"negativePrompt": negativePrompt,
|
|
|
225 |
"model": "lexica-aperture-v2",
|
226 |
"numImagesGenerated": 0,
|
227 |
"id": visitorId,
|
228 |
+
"requestId":str(myuuid),
|
229 |
})
|
230 |
headers = {
|
231 |
'authority': 'z.lexica.art',
|