Spaces:
Runtime error
Runtime error
NewtonKimathi
commited on
Commit
•
30bf470
1
Parent(s):
fa9b8f3
Readme
Browse files
README.md
CHANGED
@@ -1,10 +1,32 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|