Spaces:
Running
on
Zero
Running
on
Zero
DmitryRyumin
commited on
Commit
β’
2b57c64
1
Parent(s):
520ee21
Update requirements_app.py
Browse files- app/requirements_app.py +3 -5
app/requirements_app.py
CHANGED
@@ -34,15 +34,13 @@ def read_requirements(file_path="requirements.txt"):
|
|
34 |
with open(file_path, "r") as file:
|
35 |
lines = file.readlines()
|
36 |
|
37 |
-
data = []
|
38 |
-
|
39 |
data = [
|
40 |
{
|
41 |
config_data.Requirements_LIBRARY: split_line[0],
|
42 |
config_data.Requirements_RECOMMENDED_VERSION: split_line[1],
|
43 |
-
config_data.Requirements_CURRENT_VERSION: fetch_pypi_badge_base64(
|
44 |
-
|
45 |
-
),
|
46 |
}
|
47 |
for line in lines
|
48 |
if (split_line := line.strip().split("==")) and len(split_line) == 2
|
|
|
34 |
with open(file_path, "r") as file:
|
35 |
lines = file.readlines()
|
36 |
|
|
|
|
|
37 |
data = [
|
38 |
{
|
39 |
config_data.Requirements_LIBRARY: split_line[0],
|
40 |
config_data.Requirements_RECOMMENDED_VERSION: split_line[1],
|
41 |
+
# config_data.Requirements_CURRENT_VERSION: fetch_pypi_badge_base64(
|
42 |
+
# split_line[0]
|
43 |
+
# ),
|
44 |
}
|
45 |
for line in lines
|
46 |
if (split_line := line.strip().split("==")) and len(split_line) == 2
|