You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-36Lines changed: 24 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,53 +14,31 @@ This is just a research project, but hope it can inspire someone to build someth
14
14
15
15
# How does this work?
16
16
17
-
## Backend
17
+
## User Journey
18
18
19
-
The API has two endpoints:
20
-
21
-
1)http://127.0.0.1:8000/App/upload/
22
-
2)http://127.0.0.1:8000/App/predict/
23
-
24
-
Using the `App/upload` endpoint, it is possible to send a file taken from the RAVDESS dataset examples. The file will be serialized and stored in the `media` folder of the server.
19
+
The user journey start on the index page at ```/index/``` where it is possible to choose if
Choosing ```Upload your audio file``` a new window will be prompted. The user will be asked to pick a file from his computer and then will be prompted with a page that will confirm that the upload has been successful.
Choosing ```Make your prediction``` a new window will be prompted. In this window, it will be possible to see a list of the files already on the server. Following the path ```media/{filename}``` it will be also possible to listen to the audio file.
The ```templates``` folder will contain a Bootstrap simple UI to interact with the API (work in progress).
35
+
After clicking on ```Submit```, the user will be redirected to a modified home page that will include the prediction made by the Keras model for the file selected.
54
36
55
-
If you do not know how Django works, you can skip to the ``App/views.py`` file to review the high level logic of the API.
56
-
57
-
## Front end
58
-
59
-
The project includes a simple frontend to query the API, using a web interface instead of dedicated applications or tools like postman.
There is a short demo of the first version on YouTube: https://youtu.be/86HhxTRL3_c
64
42
65
43
# Developers stuff
66
44
@@ -74,6 +52,16 @@ The front end is still work in progress: below the actual mockup.
74
52
75
53
```python manage.py test```
76
54
55
+
**Other important topics**
56
+
57
+
The Keras model is stored in the ```models``` folder.
58
+
59
+
```gitmedia``` folder includes the pictures used for this README.
60
+
61
+
```media``` folder includes the audio files loaded using the server.
62
+
63
+
If you do not know how Django works, you can skip to the ``App/views.py`` file to review the high level logic of the API.
64
+
77
65
**User Stories**
78
66
79
67
What is the plan for the future and what it is currently ongoing: https://github.com/marcogdepinto/Django-Emotion-Classification-Ravdess-API/projects/2
0 commit comments