Spaces:
Sleeping
Sleeping
Modified file path
Browse files- app.py +2 -1
- requirements.txt +4 -2
app.py
CHANGED
|
@@ -78,7 +78,8 @@ def new__cxr(max_dense_0, max_dense_1, max_dense_2):
|
|
| 78 |
|
| 79 |
def create_csv():
|
| 80 |
global count, fieldnames, image_id, index, csv_path
|
| 81 |
-
|
|
|
|
| 82 |
if not os.path.exists(csv_path):
|
| 83 |
fieldnames = ['count', 'thresh_1', 'thresh_2', 'thresh_3']
|
| 84 |
with open(csv_path, 'w', newline='') as csvfile:
|
|
|
|
| 78 |
|
| 79 |
def create_csv():
|
| 80 |
global count, fieldnames, image_id, index, csv_path
|
| 81 |
+
current_dir = os.getcwd()
|
| 82 |
+
csv_path = os.path.join(current_dir, f'density_{user}.csv')
|
| 83 |
if not os.path.exists(csv_path):
|
| 84 |
fieldnames = ['count', 'thresh_1', 'thresh_2', 'thresh_3']
|
| 85 |
with open(csv_path, 'w', newline='') as csvfile:
|
requirements.txt
CHANGED
|
@@ -1,2 +1,4 @@
|
|
| 1 |
-
opencv-python
|
| 2 |
-
numpy
|
|
|
|
|
|
|
|
|
| 1 |
+
opencv-python~=4.8.0.74
|
| 2 |
+
numpy~=1.25.2
|
| 3 |
+
|
| 4 |
+
gradio~=3.39.0
|