update 2
This commit is contained in:
16
run.sh
Normal file
16
run.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Активируем виртуальное окружение (если есть)
|
||||
source venv/bin/activate
|
||||
|
||||
# Запускаем Бэкенд в фоне
|
||||
echo "Starting Backend..."
|
||||
python3 app.py > backend.log 2>&1 &
|
||||
|
||||
# Запускаем Фронтенд в фоне
|
||||
echo "Starting Frontend..."
|
||||
streamlit run ui.py --server.port 8501 > frontend.log 2>&1 &
|
||||
|
||||
echo "Services are running in background!"
|
||||
echo "Backend: http://localhost:8000"
|
||||
echo "Frontend: http://localhost:8501"
|
||||
Reference in New Issue
Block a user