Spaces:
Runtime error
Runtime error
Salvatore Rossitto
commited on
Commit
·
810c51b
1
Parent(s):
d02115a
adding download message
Browse files- start_agent.bat +22 -0
start_agent.bat
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@echo off
|
2 |
+
|
3 |
+
rem Define the name of your virtual environment
|
4 |
+
set ENV_NAME=myenv
|
5 |
+
|
6 |
+
rem Check if the virtual environment folder exists
|
7 |
+
if not exist %ENV_NAME% (
|
8 |
+
rem Create a new virtual environment
|
9 |
+
python -m venv %ENV_NAME%
|
10 |
+
)
|
11 |
+
|
12 |
+
rem Activate the virtual environment
|
13 |
+
call %ENV_NAME%\Scripts\activate
|
14 |
+
|
15 |
+
rem Install the required packages from requirements.txt
|
16 |
+
python -m pip install -r requirements.txt
|
17 |
+
|
18 |
+
rem Run your Streamlit application
|
19 |
+
python -m streamlit run agent_llama_ui.py
|
20 |
+
|
21 |
+
rem Deactivate the virtual environment
|
22 |
+
deactivate
|