Imsachinsingh00 commited on
Commit
d172d27
Β·
1 Parent(s): 05ecb1a

Reinitializing project for new Hugging Face Space

Browse files
Files changed (35) hide show
  1. .DS_Store +0 -0
  2. .gitignore +1 -0
  3. .gitmodules +3 -0
  4. Dockerfile +16 -13
  5. Web app/.DS_Store +0 -0
  6. Web app/static/.DS_Store +0 -0
  7. {Web app β†’ Web_app}/app.py +1 -1
  8. Web_app/best.pt +3 -0
  9. {Web app β†’ Web_app}/fist.png +0 -0
  10. {Web app β†’ Web_app}/ok.png +0 -0
  11. {Web app β†’ Web_app}/peace.png +0 -0
  12. {Web app β†’ Web_app}/requirements.txt +0 -0
  13. {Web app β†’ Web_app}/static/gesture_data.csv +30 -30
  14. {Web app β†’ Web_app}/static/gesture_data_labelstudio.json +0 -0
  15. {Web app β†’ Web_app}/static/images/fist.png +0 -0
  16. {Web app β†’ Web_app}/static/images/ok.png +0 -0
  17. {Web app β†’ Web_app}/static/images/peace.png +0 -0
  18. {Web app β†’ Web_app}/static/images/stop.png +0 -0
  19. {Web app β†’ Web_app}/static/images/two_up.png +0 -0
  20. {Web app β†’ Web_app}/static/imported_gesture_data.csv +0 -0
  21. {Web app β†’ Web_app}/static/placeholder.txt +0 -0
  22. {Web app β†’ Web_app}/stop.png +0 -0
  23. {Web app β†’ Web_app}/templates/compare_data.html +0 -0
  24. {Web app β†’ Web_app}/templates/csv_file.html +0 -0
  25. {Web app β†’ Web_app}/templates/data.html +0 -0
  26. {Web app β†’ Web_app}/templates/data1.html +0 -0
  27. {Web app β†’ Web_app}/templates/edit_csv.html +0 -0
  28. {Web app β†’ Web_app}/templates/import_data.html +0 -0
  29. {Web app β†’ Web_app}/templates/import_data1.html +0 -0
  30. {Web app β†’ Web_app}/templates/index.html +0 -0
  31. {Web app β†’ Web_app}/templates/recognize.html +0 -0
  32. {Web app β†’ Web_app}/templates/set_labels.html +0 -0
  33. {Web app β†’ Web_app}/templates/speech copy.html +0 -0
  34. {Web app β†’ Web_app}/templates/speech.html +0 -0
  35. {Web app β†’ Web_app}/two_up.png +0 -0
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .DS_Store
.gitmodules ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [submodule "HandyLabel"]
2
+ path = HandyLabel
3
+ url = https://huggingface.co/spaces/Imsachinsingh00/HandyLabel
Dockerfile CHANGED
@@ -1,23 +1,26 @@
1
- # Use an official Python runtime as a base image
2
  FROM python:3.9
3
 
4
- # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Copy the requirements file from "Web_app" into the container
8
- COPY Web_app/requirements.txt /app/
 
 
 
 
 
9
 
 
 
10
  RUN pip install --upgrade pip
11
- # Install dependencies
12
- RUN apt-get update && apt-get install -y portaudio19-dev && \
13
- pip install --no-cache-dir -r requirements.txt
14
 
 
 
15
 
16
- # Copy everything from "Web_app" into the working directory
17
- COPY Web_app /app/
18
-
19
- # Expose the Flask default port
20
  EXPOSE 5000
21
 
22
- # Run Flask app
23
- CMD ["python", "/app/app.py"]
 
 
1
  FROM python:3.9
2
 
3
+ # Set working directory
4
  WORKDIR /app
5
 
6
+ # Install required system packages
7
+ RUN apt-get update && apt-get install -y \
8
+ libgl1-mesa-glx \
9
+ libportaudio2 \
10
+ portaudio19-dev \
11
+ ffmpeg \
12
+ && apt-get clean
13
 
14
+ # Install Python dependencies
15
+ COPY Web_app/requirements.txt ./requirements.txt
16
  RUN pip install --upgrade pip
17
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
18
 
19
+ # Copy application code
20
+ COPY Web_app .
21
 
22
+ # Expose the port Flask runs on
 
 
 
23
  EXPOSE 5000
24
 
25
+ # Command to run the app
26
+ CMD ["python", "app.py"]
Web app/.DS_Store DELETED
Binary file (8.2 kB)
 
Web app/static/.DS_Store DELETED
Binary file (6.15 kB)
 
{Web app β†’ Web_app}/app.py RENAMED
@@ -47,7 +47,7 @@ def safe_load_yolo_model(model_path):
47
  raise
48
 
49
  # Load YOLO model
50
- model_path = 'best.pt'
51
  model = safe_load_yolo_model(model_path)
52
 
53
 
 
47
  raise
48
 
49
  # Load YOLO model
50
+ model_path = './best.pt'
51
  model = safe_load_yolo_model(model_path)
52
 
53
 
Web_app/best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9480d18aae80ec7c7a4c3c3e1a85bfd674d3d061e608baf2b2da401318b68d2a
3
+ size 5897040
{Web app β†’ Web_app}/fist.png RENAMED
File without changes
{Web app β†’ Web_app}/ok.png RENAMED
File without changes
{Web app β†’ Web_app}/peace.png RENAMED
File without changes
{Web app β†’ Web_app}/requirements.txt RENAMED
File without changes
{Web app β†’ Web_app}/static/gesture_data.csv RENAMED
@@ -1,30 +1,30 @@
1
- Gesture,Start Time,End Time,Duration
2
- a,2.703457,2.791474,0.09
3
- c,2.791474,3.177169,0.39
4
- a,3.177169,3.477513,0.3
5
- c,3.477513,3.548062,0.07
6
- a,3.548062,3.834808,0.29
7
- c,3.834808,4.306889,0.47
8
- a,4.306889,4.577862,0.27
9
- d,4.577862,5.560682,0.98
10
- a,5.560682,6.556111,1.0
11
- d,6.556111,7.764478,1.21
12
- a,7.764478,8.422632,0.66
13
- d,8.422632,8.488039,0.07
14
- b,8.488039,8.556642,0.07
15
- d,8.556642,8.630307,0.07
16
- b,8.630307,9.021776,0.39
17
- a,9.021776,9.45754,0.44
18
- b,9.45754,9.521933,0.06
19
- c,9.521933,9.657519,0.14
20
- b,9.657519,9.762675,0.11
21
- c,9.762675,9.821062,0.06
22
- b,9.821062,9.892455,0.07
23
- a,9.892455,9.954735,0.06
24
- c,9.954735,10.020776,0.07
25
- a,10.020776,10.08684,0.07
26
- b,10.08684,10.153284,0.07
27
- a,10.153284,10.221532,0.07
28
- c,10.221532,10.419941,0.2
29
- a,10.419941,10.624734,0.2
30
- c,10.624734,10.691169,0.07
 
1
+ Gesture,Start Time,End Time,Duration
2
+ a,2.703457,2.791474,0.09
3
+ c,2.791474,3.177169,0.39
4
+ a,3.177169,3.477513,0.3
5
+ c,3.477513,3.548062,0.07
6
+ a,3.548062,3.834808,0.29
7
+ c,3.834808,4.306889,0.47
8
+ a,4.306889,4.577862,0.27
9
+ d,4.577862,5.560682,0.98
10
+ a,5.560682,6.556111,1.0
11
+ d,6.556111,7.764478,1.21
12
+ a,7.764478,8.422632,0.66
13
+ d,8.422632,8.488039,0.07
14
+ b,8.488039,8.556642,0.07
15
+ d,8.556642,8.630307,0.07
16
+ b,8.630307,9.021776,0.39
17
+ a,9.021776,9.45754,0.44
18
+ b,9.45754,9.521933,0.06
19
+ c,9.521933,9.657519,0.14
20
+ b,9.657519,9.762675,0.11
21
+ c,9.762675,9.821062,0.06
22
+ b,9.821062,9.892455,0.07
23
+ a,9.892455,9.954735,0.06
24
+ c,9.954735,10.020776,0.07
25
+ a,10.020776,10.08684,0.07
26
+ b,10.08684,10.153284,0.07
27
+ a,10.153284,10.221532,0.07
28
+ c,10.221532,10.419941,0.2
29
+ a,10.419941,10.624734,0.2
30
+ c,10.624734,10.691169,0.07
{Web app β†’ Web_app}/static/gesture_data_labelstudio.json RENAMED
File without changes
{Web app β†’ Web_app}/static/images/fist.png RENAMED
File without changes
{Web app β†’ Web_app}/static/images/ok.png RENAMED
File without changes
{Web app β†’ Web_app}/static/images/peace.png RENAMED
File without changes
{Web app β†’ Web_app}/static/images/stop.png RENAMED
File without changes
{Web app β†’ Web_app}/static/images/two_up.png RENAMED
File without changes
{Web app β†’ Web_app}/static/imported_gesture_data.csv RENAMED
File without changes
{Web app β†’ Web_app}/static/placeholder.txt RENAMED
File without changes
{Web app β†’ Web_app}/stop.png RENAMED
File without changes
{Web app β†’ Web_app}/templates/compare_data.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/csv_file.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/data.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/data1.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/edit_csv.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/import_data.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/import_data1.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/index.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/recognize.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/set_labels.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/speech copy.html RENAMED
File without changes
{Web app β†’ Web_app}/templates/speech.html RENAMED
File without changes
{Web app β†’ Web_app}/two_up.png RENAMED
File without changes