Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def process_text(text_input, unit):
|
|
33 |
return ""
|
34 |
|
35 |
|
36 |
-
def process_image(image_input,unit):
|
37 |
if image_input is not None:
|
38 |
with open(image_input.name, "rb") as f:
|
39 |
base64_image = base64.b64encode(f.read()).decode("utf-8")
|
@@ -50,6 +50,7 @@ def process_image(image_input,unit):
|
|
50 |
],
|
51 |
temperature=0.0,
|
52 |
)
|
|
|
53 |
return response.choices[0].message.content
|
54 |
|
55 |
|
|
|
33 |
return ""
|
34 |
|
35 |
|
36 |
+
def process_image(image_input, unit):
|
37 |
if image_input is not None:
|
38 |
with open(image_input.name, "rb") as f:
|
39 |
base64_image = base64.b64encode(f.read()).decode("utf-8")
|
|
|
50 |
],
|
51 |
temperature=0.0,
|
52 |
)
|
53 |
+
print(response)
|
54 |
return response.choices[0].message.content
|
55 |
|
56 |
|