Spaces:
Runtime error
Runtime error
tlodato
commited on
Commit
·
d20cc99
1
Parent(s):
081af0c
update
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def vqa(image_path:str, prompt:str):
|
|
13 |
|
14 |
def variants(image_path:str,prompt:str,rot:int):
|
15 |
with tempfile.NamedTemporaryFile(mode="wb") as img:
|
16 |
-
img = Image.open(image_path,mode="r").rotate(
|
17 |
vqa(img,prompt)
|
18 |
|
19 |
|
|
|
13 |
|
14 |
def variants(image_path:str,prompt:str,rot:int):
|
15 |
with tempfile.NamedTemporaryFile(mode="wb") as img:
|
16 |
+
img = Image.open(image_path,mode="r").rotate(rot).save("temp.jpg")
|
17 |
vqa(img,prompt)
|
18 |
|
19 |
|