You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,3 +34,40 @@ Here are the preferred tools for development.
34
34
|[7_streamlit_chat_rag](./apps/7_streamlit_chat_rag/README.md)| Add RAG feature to Streamlit chat app ||
35
35
|[8_streamlit_azure_openai_batch](./apps/8_streamlit_azure_openai_batch/README.md)| Call Azure OpenAI Batch API with Streamlit ||
36
36
|[99_streamlit_examples](./apps/99_streamlit_examples/README.md)| Code samples for Streamlit ||
37
+
38
+
## How to run
39
+
40
+
Referring to the [.env.template](.env.template) file, create a `.env` file in the same directory and set the required credentials.
41
+
42
+
### Local environment
43
+
44
+
```shell
45
+
# Create a virtual environment
46
+
$ python -m venv .venv
47
+
48
+
# Activate the virtual environment
49
+
$ source .venv/bin/activate
50
+
51
+
# Install dependencies
52
+
$ pip install -r requirements.txt
53
+
54
+
# Run the script (e.g. run 2_streamlit_chat)
55
+
$ python -m streamlit run apps/2_streamlit_chat/main.py
0 commit comments