Spaces:
Running
Running
datasciencesage
commited on
Commit
·
c944402
1
Parent(s):
4b799d4
Added some requirements
Browse files- app.log +30 -0
- app.py +5 -1
- requirements.txt +3 -1
app.log
CHANGED
@@ -33,3 +33,33 @@
|
|
33 |
* Running on http://127.0.0.1:5000
|
34 |
* Running on http://192.168.1.2:5000
|
35 |
2024-12-29 19:29:48,575 - werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
* Running on http://127.0.0.1:5000
|
34 |
* Running on http://192.168.1.2:5000
|
35 |
2024-12-29 19:29:48,575 - werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
36 |
+
2024-12-29 19:59:21,608 - __main__ - INFO - Initializing models...
|
37 |
+
2024-12-29 20:00:03,277 - jax._src.xla_bridge - INFO - Unable to initialize backend 'rocm': module 'jaxlib.xla_extension' has no attribute 'GpuAllocatorConfig'
|
38 |
+
2024-12-29 20:00:03,290 - jax._src.xla_bridge - INFO - Unable to initialize backend 'tpu': UNIMPLEMENTED: LoadPjrtPlugin is not implemented on windows yet.
|
39 |
+
2024-12-29 20:00:06,772 - absl - INFO - Using C:\Users\DELL\AppData\Local\Temp\tfhub_modules to cache modules.
|
40 |
+
2024-12-29 20:00:06,794 - tensorflow - WARNING - From d:\Education\My Projects\AUDIO CLASSIFICATION ALL MODELS\project_audio\.conda\lib\site-packages\tensorflow_hub\resolver.py:120: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.
|
41 |
+
|
42 |
+
2024-12-29 20:00:06,807 - tensorflow - WARNING - From d:\Education\My Projects\AUDIO CLASSIFICATION ALL MODELS\project_audio\.conda\lib\site-packages\tensorflow_hub\module_v2.py:126: The name tf.saved_model.load_v2 is deprecated. Please use tf.compat.v2.saved_model.load instead.
|
43 |
+
|
44 |
+
2024-12-29 20:00:13,465 - absl - INFO - Fingerprint not found. Saved model loading will continue.
|
45 |
+
2024-12-29 20:00:13,466 - absl - INFO - path_and_singleprint metric could not be logged. Saved model loading will continue.
|
46 |
+
2024-12-29 20:00:13,467 - __main__ - INFO - Models initialized successfully
|
47 |
+
2024-12-29 20:01:26,026 - __main__ - INFO - Initializing models...
|
48 |
+
2024-12-29 20:02:04,356 - jax._src.xla_bridge - INFO - Unable to initialize backend 'rocm': module 'jaxlib.xla_extension' has no attribute 'GpuAllocatorConfig'
|
49 |
+
2024-12-29 20:02:04,373 - jax._src.xla_bridge - INFO - Unable to initialize backend 'tpu': UNIMPLEMENTED: LoadPjrtPlugin is not implemented on windows yet.
|
50 |
+
2024-12-29 20:02:09,664 - absl - INFO - Using C:\Users\DELL\AppData\Local\Temp\tfhub_modules to cache modules.
|
51 |
+
2024-12-29 20:02:09,693 - tensorflow - WARNING - From d:\Education\My Projects\AUDIO CLASSIFICATION ALL MODELS\project_audio\.conda\lib\site-packages\tensorflow_hub\resolver.py:120: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.
|
52 |
+
|
53 |
+
2024-12-29 20:02:09,725 - tensorflow - WARNING - From d:\Education\My Projects\AUDIO CLASSIFICATION ALL MODELS\project_audio\.conda\lib\site-packages\tensorflow_hub\module_v2.py:126: The name tf.saved_model.load_v2 is deprecated. Please use tf.compat.v2.saved_model.load instead.
|
54 |
+
|
55 |
+
2024-12-29 20:02:19,249 - absl - INFO - Fingerprint not found. Saved model loading will continue.
|
56 |
+
2024-12-29 20:02:19,251 - absl - INFO - path_and_singleprint metric could not be logged. Saved model loading will continue.
|
57 |
+
2024-12-29 20:02:19,252 - __main__ - INFO - Models initialized successfully
|
58 |
+
2024-12-29 20:02:19,297 - werkzeug - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
59 |
+
* Running on all addresses (0.0.0.0)
|
60 |
+
* Running on http://127.0.0.1:5000
|
61 |
+
* Running on http://192.168.1.2:5000
|
62 |
+
2024-12-29 20:02:19,302 - werkzeug - INFO - [33mPress CTRL+C to quit[0m
|
63 |
+
2024-12-29 20:02:59,928 - werkzeug - INFO - 127.0.0.1 - - [29/Dec/2024 20:02:59] "GET / HTTP/1.1" 200 -
|
64 |
+
2024-12-29 20:03:06,514 - werkzeug - INFO - 127.0.0.1 - - [29/Dec/2024 20:03:06] "POST /process HTTP/1.1" 200 -
|
65 |
+
2024-12-29 20:03:23,987 - werkzeug - INFO - 127.0.0.1 - - [29/Dec/2024 20:03:23] "POST /upload HTTP/1.1" 200 -
|
app.py
CHANGED
@@ -182,4 +182,8 @@ def upload():
|
|
182 |
try:
|
183 |
Path(filepath).unlink()
|
184 |
except Exception as e:
|
185 |
-
logger.error(f"Error deleting file {filepath}: {str(e)}")
|
|
|
|
|
|
|
|
|
|
182 |
try:
|
183 |
Path(filepath).unlink()
|
184 |
except Exception as e:
|
185 |
+
logger.error(f"Error deleting file {filepath}: {str(e)}")
|
186 |
+
|
187 |
+
if __name__ == '__main__':
|
188 |
+
# Set debug=False to prevent reloading
|
189 |
+
app.run(debug=False, host='0.0.0.0', port=5000)
|
requirements.txt
CHANGED
@@ -12,4 +12,6 @@ uvicorn
|
|
12 |
tensorflow-hub
|
13 |
jax
|
14 |
accelerate
|
15 |
-
gunicorn
|
|
|
|
|
|
12 |
tensorflow-hub
|
13 |
jax
|
14 |
accelerate
|
15 |
+
gunicorn
|
16 |
+
soundfile
|
17 |
+
audioread
|