Spaces:
Running
Running
davidmezzetti
commited on
Commit
•
b8ee19c
1
Parent(s):
4529f6c
Update app.py
Browse files
app.py
CHANGED
@@ -78,15 +78,12 @@ def app(directory):
|
|
78 |
if __name__ == "__main__":
|
79 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
80 |
|
81 |
-
|
82 |
-
if not os.path.exists(
|
83 |
-
os.makedirs(
|
84 |
|
85 |
response = requests.get("https://github.com/neuml/txtai/releases/download/v3.5.0/tests.tar.gz", stream=True)
|
86 |
f = tarfile.open(fileobj=response.raw, mode="r|gz")
|
87 |
f.extractall(path="/tmp")
|
88 |
-
|
89 |
-
|
90 |
-
print(glob.glob("/tmp/txtai/*"))
|
91 |
-
|
92 |
-
app(images)
|
|
|
78 |
if __name__ == "__main__":
|
79 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
80 |
|
81 |
+
files = "/tmp/txtai"
|
82 |
+
if not os.path.exists(files):
|
83 |
+
os.makedirs(files)
|
84 |
|
85 |
response = requests.get("https://github.com/neuml/txtai/releases/download/v3.5.0/tests.tar.gz", stream=True)
|
86 |
f = tarfile.open(fileobj=response.raw, mode="r|gz")
|
87 |
f.extractall(path="/tmp")
|
88 |
+
|
89 |
+
app(files)
|
|
|
|
|
|