Spaces:
Runtime error
Runtime error
Commit
·
8df822a
1
Parent(s):
48fff0d
fixing errors - rename sample dir
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def vqa(image, question):
|
|
| 42 |
sequence = re.sub(r"<.*?>", "", sequence, count=1).strip() # remove first task start token
|
| 43 |
return processor.token2json(sequence)
|
| 44 |
|
| 45 |
-
dirpath = os.path.join(os.getcwd(), "
|
| 46 |
examples = [[os.path.join(dirpath, x),"what is this document"] for x in os.listdir(dirpath)]
|
| 47 |
|
| 48 |
|
|
|
|
| 42 |
sequence = re.sub(r"<.*?>", "", sequence, count=1).strip() # remove first task start token
|
| 43 |
return processor.token2json(sequence)
|
| 44 |
|
| 45 |
+
dirpath = os.path.join(os.getcwd(), "sample docs/" )
|
| 46 |
examples = [[os.path.join(dirpath, x),"what is this document"] for x in os.listdir(dirpath)]
|
| 47 |
|
| 48 |
|