Spaces:
Sleeping
Sleeping
Download scripts/run_frontend.py from thanhnv2323/humanize-text-python: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/scripts/run_frontend.py
- Command line
-
hf download hf://spaces/thanhnv2323/humanize-text-python/scripts/run_frontend.py
-
curl -L -o run_frontend.py https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/scripts/run_frontend.py
663 Bytes
| """Launch the Streamlit frontend for Lavazza AI Personas.""" | |
| import sys | |
| import subprocess | |
| from adsp.config import PROJ_ROOT | |
| def main(): | |
| """Launch the Streamlit application.""" | |
| app_path = PROJ_ROOT / "adsp" / "fe" / "app.py" | |
| if not app_path.exists(): | |
| print(f"Error: Frontend app not found at {app_path}") | |
| sys.exit(1) | |
| print("Starting Lavazza AI Personas Frontend...") | |
| print("Open Frontend") | |
| # Launch Streamlit | |
| subprocess.run([ | |
| sys.executable, | |
| "-m", | |
| "streamlit", | |
| "run", | |
| str(app_path), | |
| "--server.headless=true", | |
| ]) | |
| if __name__ == "__main__": | |
| main() |