Commit
·
e73a9e0
1
Parent(s):
2092506
always import subprocess
Browse files- app.py +1 -1
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -6,6 +6,7 @@ Beautiful custom timeline visualization for Transformers models using Flask.
|
|
| 6 |
import glob
|
| 7 |
import os
|
| 8 |
import re
|
|
|
|
| 9 |
import sys
|
| 10 |
import time
|
| 11 |
import webbrowser
|
|
@@ -445,7 +446,6 @@ transformers_path = os.path.dirname(transformers.__file__)
|
|
| 445 |
repo_dir = os.path.join(os.path.dirname(__file__), "transformers")
|
| 446 |
if not os.path.exists(repo_dir):
|
| 447 |
print("Cloning transformers repository...")
|
| 448 |
-
import subprocess
|
| 449 |
|
| 450 |
subprocess.run(["git", "clone", "https://github.com/huggingface/transformers.git", repo_dir], check=True)
|
| 451 |
subprocess.run(["pip", "install", "-e", repo_dir], check=True)
|
|
|
|
| 6 |
import glob
|
| 7 |
import os
|
| 8 |
import re
|
| 9 |
+
import subprocess
|
| 10 |
import sys
|
| 11 |
import time
|
| 12 |
import webbrowser
|
|
|
|
| 446 |
repo_dir = os.path.join(os.path.dirname(__file__), "transformers")
|
| 447 |
if not os.path.exists(repo_dir):
|
| 448 |
print("Cloning transformers repository...")
|
|
|
|
| 449 |
|
| 450 |
subprocess.run(["git", "clone", "https://github.com/huggingface/transformers.git", repo_dir], check=True)
|
| 451 |
subprocess.run(["pip", "install", "-e", repo_dir], check=True)
|
requirements.txt
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
| 1 |
git+https://github.com/huggingface/transformers.git@main
|
|
|
|
| 2 |
spaces
|
| 3 |
flask
|
|
|
|
| 1 |
+
torch
|
| 2 |
git+https://github.com/huggingface/transformers.git@main
|
| 3 |
+
huggingface-hub==1.0.0.rc1
|
| 4 |
spaces
|
| 5 |
flask
|