Vihang28 commited on
Commit
42e8052
·
verified ·
1 Parent(s): d2f6b78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -41,7 +41,9 @@ def api_calling(image, prompt, api_key):
41
  ]
42
  }
43
  ],
44
- "max_tokens": 500
 
 
45
  }
46
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
47
  img_preview = response.json()
 
41
  ]
42
  }
43
  ],
44
+ "max_tokens": 500,
45
+ "temperature": 0.9,
46
+ "n": 1
47
  }
48
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
49
  img_preview = response.json()