hra commited on
Commit
4af011d
1 Parent(s): 9d6cb2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,10 +51,10 @@ HF_TOKEN=API_TOKEN# token where you deployed your endpoint
51
 
52
  def generate_image(prompt_SD:str):
53
  print(prompt_SD)
54
- payload = {"inputs": prompt_SD,"seed":random.randint(0,100),"parameters": {
55
  "width": 768,
56
  "height": 768,
57
- "negative_prompt":"low quality"
58
  }}
59
  headers = {
60
  "Authorization": f"Bearer {HF_TOKEN}",
 
51
 
52
  def generate_image(prompt_SD:str):
53
  print(prompt_SD)
54
+ payload = {"inputs": prompt_SD,"seed":random.randint(0,100),"negative_prompt":"low quality","parameters": {
55
  "width": 768,
56
  "height": 768,
57
+
58
  }}
59
  headers = {
60
  "Authorization": f"Bearer {HF_TOKEN}",