Vihang28 commited on
Commit
c155647
·
verified ·
1 Parent(s): 51b847b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,7 +41,8 @@ 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
  }
47
  response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
48
  img_preview = response.json()