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