Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ def api_calling(image, prompt, api_key):
|
|
| 42 |
}
|
| 43 |
],
|
| 44 |
"max_tokens": 500
|
| 45 |
-
|
| 46 |
-
|
| 47 |
}
|
| 48 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
| 49 |
img_preview = response.json()
|
|
|
|
| 42 |
}
|
| 43 |
],
|
| 44 |
"max_tokens": 500
|
| 45 |
+
"temperature": 2.0,
|
| 46 |
+
"n": 1
|
| 47 |
}
|
| 48 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
| 49 |
img_preview = response.json()
|