-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_streamlit.ps1
More file actions
35 lines (29 loc) · 1.19 KB
/
Copy pathrun_streamlit.ps1
File metadata and controls
35 lines (29 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Script PowerShell para executar Streamlit
# Copie e cole este conteúdo no PowerShell, ou salve como .ps1 e execute
$PythonPath = "C:\Users\anton\AppData\Local\Microsoft\WindowsApps\python3.13.exe"
$ProjectDir = Split-Path -Parent $MyInvocation.MyCommand.Path
Write-Host ""
Write-Host "========================================"
Write-Host " Arabidopsis Gene Analysis - Streamlit"
Write-Host "========================================"
Write-Host ""
# Verificar Python
if (!(Test-Path $PythonPath)) {
Write-Host "ERRO: Python nao encontrado em $PythonPath" -ForegroundColor Red
Write-Host "Instale Python 3.13 ou posterior"
Read-Host "Pressione Enter para sair"
exit 1
}
Write-Host "Verificando dependencias..."
& $PythonPath -m pip show streamlit > $null 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "Instalando dependencias..."
& $PythonPath -m pip install --upgrade streamlit biopython pandas numpy matplotlib seaborn scikit-learn
}
Write-Host ""
Write-Host "Iniciando aplicacao Streamlit..."
Write-Host "Acesse: http://localhost:8501"
Write-Host ""
Write-Host "(Pressione Ctrl+C para parar o servidor)"
Write-Host ""
& $PythonPath -m streamlit run "$ProjectDir\frontend\frontend.py"