Spaces:
Sleeping
Sleeping
Stardragon2099
commited on
Commit
·
1800997
1
Parent(s):
a02bab6
ported to chatgpt api
Browse files
app.py
CHANGED
@@ -259,7 +259,7 @@ def gradio_interface(image, prompt):
|
|
259 |
question = prompt
|
260 |
if image.mode != "RGB":
|
261 |
image = image.convert("RGB")
|
262 |
-
|
263 |
|
264 |
answer = predict(image, question)
|
265 |
# answer = post_processing(answer, question)
|
|
|
259 |
question = prompt
|
260 |
if image.mode != "RGB":
|
261 |
image = image.convert("RGB")
|
262 |
+
image = image.resize((500,500))
|
263 |
|
264 |
answer = predict(image, question)
|
265 |
# answer = post_processing(answer, question)
|