taraky's picture
Upload folder using huggingface_hub
b7f3196 verified
# Medical Q&A Bot - PowerShell Launcher
# Run this script to launch the web UI
Write-Host "========================================" -ForegroundColor Cyan
Write-Host "Medical Q&A Bot - Web Interface" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
# Check if virtual environment exists
if (Test-Path ".venv\Scripts\Activate.ps1") {
Write-Host "Activating virtual environment..." -ForegroundColor Green
& .venv\Scripts\Activate.ps1
} else {
Write-Host "No virtual environment found. Using system Python." -ForegroundColor Yellow
}
Write-Host ""
Write-Host "Launching Gradio interface..." -ForegroundColor Green
Write-Host "The web UI will open at: http://127.0.0.1:7860" -ForegroundColor Yellow
Write-Host ""
Write-Host "Press Ctrl+C to stop the server" -ForegroundColor Red
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
# Launch the app
python app.py
# Keep window open on error
if ($LASTEXITCODE -ne 0) {
Write-Host ""
Write-Host "An error occurred. Press any key to exit..." -ForegroundColor Red
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
}