Spaces:
Running
Running
Benjamin Consolvo
commited on
Commit
·
4f3ad34
1
Parent(s):
ec4cdd8
uv updates
Browse files
README.md
CHANGED
|
@@ -42,27 +42,17 @@ git clone https://huggingface.co/spaces/Intel/preventative_healthcare
|
|
| 42 |
cd preventative_healthcare
|
| 43 |
```
|
| 44 |
|
| 45 |
-
You can use the `uv` package to manage your virtual environment and dependencies. Just initialize the `uv` project
|
| 46 |
|
| 47 |
```bash
|
| 48 |
-
uv init
|
| 49 |
-
uv venv
|
| 50 |
-
```
|
| 51 |
-
|
| 52 |
-
Activate the virtual environment
|
| 53 |
-
```bash
|
| 54 |
-
source .venv/bin/activate
|
| 55 |
```
|
| 56 |
|
| 57 |
Install dependencies:
|
| 58 |
```bash
|
| 59 |
-
uv
|
| 60 |
```
|
| 61 |
|
| 62 |
-
To deactivate the virtual environment when finished running the application:
|
| 63 |
-
```bash
|
| 64 |
-
deactivate
|
| 65 |
-
```
|
| 66 |
|
| 67 |
### OpenAI API Key, Model Name, and Endpoint URL
|
| 68 |
|
|
@@ -108,7 +98,7 @@ To modify prompts, you can edit them in the UI on the left sidebar, or you can e
|
|
| 108 |
If you want to run the app with streamlit, you can run it locally with:
|
| 109 |
|
| 110 |
```bash
|
| 111 |
-
streamlit run app.py
|
| 112 |
```
|
| 113 |
|
| 114 |
If you want to just run just the Python script without any frontend interface, you can use the following command with arguments as below:
|
|
|
|
| 42 |
cd preventative_healthcare
|
| 43 |
```
|
| 44 |
|
| 45 |
+
You can use the `uv` package to manage your virtual environment and dependencies. Just initialize the `uv` project:
|
| 46 |
|
| 47 |
```bash
|
| 48 |
+
uv init --bare
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
```
|
| 50 |
|
| 51 |
Install dependencies:
|
| 52 |
```bash
|
| 53 |
+
uv add -r requirements.txt
|
| 54 |
```
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
### OpenAI API Key, Model Name, and Endpoint URL
|
| 58 |
|
|
|
|
| 98 |
If you want to run the app with streamlit, you can run it locally with:
|
| 99 |
|
| 100 |
```bash
|
| 101 |
+
uv run streamlit run app.py
|
| 102 |
```
|
| 103 |
|
| 104 |
If you want to just run just the Python script without any frontend interface, you can use the following command with arguments as below:
|