Spaces:
Runtime error
Runtime error
xyplon
commited on
Commit
•
2dc0cea
1
Parent(s):
ba24613
Update app.py
Browse files
app.py
CHANGED
@@ -48,6 +48,7 @@ def Hf():
|
|
48 |
scale = request.json.get('scale',7)
|
49 |
model = request.json.get('model','sd3')
|
50 |
style = request.json.get('style', 'Cinematic')
|
|
|
51 |
def Gen(prompt,negative,steps,width,height,scale,style,model):
|
52 |
req = requests.post('https://xyplon-flask.hf.space/hf/img/gen',headers={
|
53 |
'Authorization' : os.getenv('auth')
|
@@ -59,7 +60,8 @@ def Hf():
|
|
59 |
'height': height,
|
60 |
'scale': scale,
|
61 |
'model' : model,
|
62 |
-
'style': style
|
|
|
63 |
}, stream=True)
|
64 |
if(req.status_code!=200):
|
65 |
return "an error occurred! ", 500
|
|
|
48 |
scale = request.json.get('scale',7)
|
49 |
model = request.json.get('model','sd3')
|
50 |
style = request.json.get('style', 'Cinematic')
|
51 |
+
hash = request.json.get('hash', 'Cinematic')
|
52 |
def Gen(prompt,negative,steps,width,height,scale,style,model):
|
53 |
req = requests.post('https://xyplon-flask.hf.space/hf/img/gen',headers={
|
54 |
'Authorization' : os.getenv('auth')
|
|
|
60 |
'height': height,
|
61 |
'scale': scale,
|
62 |
'model' : model,
|
63 |
+
'style': style,
|
64 |
+
'hash': hash
|
65 |
}, stream=True)
|
66 |
if(req.status_code!=200):
|
67 |
return "an error occurred! ", 500
|