Does anyone know what is causing this error?
Error when attempting to deploy in streamlit.io:
The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/script-health-check”: EOF
requirements.txt:
streamlit==1.43.2
numpy==1.26.0
pandas==2.2.3
nltk==3.9.1
scikit-learn==1.6.1
faiss-cpu==1.10.0
torch==2.6.0
transformers==4.50.3
gdown==5.2.0
Python version used locally: 3.11.0
Github repo: GitHub - bbplus3/recommenderApp: Streamlit app for bible verser recommender
When I run locally, the app works and does what it is supposed to, but I get these errors in my command prompt:
RuntimeError: no running event loop
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\cashc\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\watcher\local_sources_watcher.py”, line 217, in get_module_paths
potential_paths = extract_paths(module)
^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\cashc\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\watcher\local_sources_watcher.py”, line 210, in
lambda m: list(m.path._path),
^^^^^^^^^^^^^^^^
File “C:\Users\cashc\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch_classes.py”, line 13, in getattr
proxy = torch._C._get_custom_class_python_wrapper(self.name, attr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Tried to instantiate class 'path.path’, but it does not exist! Ensure that it is registered via torch::class
WARNING:tensorflow:From C:\Users\cashc\AppData\Local\Programs\Python\Python311\Lib\site-packages\keras\src\backend\common\global_state.py:82: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.