NewtonKimathi commited on
Commit
a50c3df
1 Parent(s): 945748a

Updated Readme

Browse files
Files changed (1) hide show
  1. README.md +11 -28
README.md CHANGED
@@ -1,32 +1,15 @@
1
- Install the required packages to be able to run the evaluation locally.
 
 
 
 
 
 
 
2
 
3
- You need to have Python 3 on your system (a Python version lower than 3.10). Then you can clone this repo and being at the repo's root :: repository_name> ... follow the steps below:
4
- ``````
5
- Windows:
6
-
7
- python -m venv venv; venv\Scripts\activate; python -m pip install -q --upgrade pip; python -m pip install -qr requirements.txt
8
- ``````
9
- Linux & MacOs:
10
- ``````
11
- python3 -m venv venv; source venv/bin/activate; python -m pip install -q --upgrade pip; python -m pip install -qr requirements.txt
12
- ``````
13
- The both long command-lines have a same structure, they pipe multiple commands using the symbol ; but you may manually execute them one after another.
14
 
15
- * Create the Python's virtual environment that isolates the required libraries of the project to avoid conflicts;
16
- * Activate the Python's virtual environment so that the Python kernel & libraries will be those of the isolated environment;
17
- * Upgrade Pip, the installed libraries/packages manager to have the up-to-date version that will work correctly;
18
- * Install the required libraries/packages listed in the requirements.txt file so that it will be allow to import them into the python's scripts and notebooks without any issue.
19
- NB: For MacOs users, please install Xcode if you have an issue.
20
 
21
- Run FastAPI
22
- Run the demo apps (being at the repository root):
23
-
24
- FastAPI:
25
-
26
- Demo
27
-
28
- uvicorn src.demo_01.api:app --reload
29
- Go to your browser at the following address, to explore the api's documentation :
30
-
31
- http://127.0.0.1:8000/docs#/
32
 
 
1
+ metadata
2
+ title: Spesis Prediction Fast API
3
+ emoji: 🤒
4
+ colorFrom: red
5
+ colorTo: blue
6
+ sdk: docker
7
+ pinned: false
8
+ Here is the link to directly access the API: here. Access the documentation here.
9
 
10
+ To direcly access your API hosted on HuggingFace you should use the URL follow this format : https://<USERNAME>-<SPACENAME>.hf.space/
 
 
 
 
 
 
 
 
 
 
11
 
12
+ In my case it is : https://NewtonKimathi-Sepsis_Prediction_FastApi.hf.space/
 
 
 
 
13
 
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
15