Spaces:
Sleeping
Sleeping
Commit
·
1bc2ef2
1
Parent(s):
33339ca
ported to chatgpt api
Browse files
app.py
CHANGED
@@ -253,6 +253,7 @@ def gradio_interface(image, prompt):
|
|
253 |
question = prompt
|
254 |
if image.mode != "RGB":
|
255 |
image = image.convert("RGB")
|
|
|
256 |
|
257 |
answer = predict(image, question)
|
258 |
# answer = post_processing(answer, question)
|
|
|
253 |
question = prompt
|
254 |
if image.mode != "RGB":
|
255 |
image = image.convert("RGB")
|
256 |
+
image = image.resize((200,200), Image.ANTIALIAS)
|
257 |
|
258 |
answer = predict(image, question)
|
259 |
# answer = post_processing(answer, question)
|