davidmezzetti commited on
Commit
b8ee19c
1 Parent(s): 4529f6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -78,15 +78,12 @@ def app(directory):
78
  if __name__ == "__main__":
79
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
80
 
81
- images = "/tmp/txtai"
82
- if not os.path.exists(images):
83
- os.makedirs(images)
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
- import glob
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)