StatDetectLLM / streamlit_backup /README_BACKUP.md
Jin Zhu
update code for website
a71717d
|
Raw History Blame Contribute Delete
941 Bytes
# Streamlit version — backup
Snapshot of the CPU-only Streamlit app, taken 2026-08-11 before migrating to Gradio
(for HF Spaces ZeroGPU support). Files here are exact copies of what shipped at that time:
- `app.py` → was `src/app.py`
- `requirements.txt` → repo root
- `Dockerfile` → repo root
- `README.md` → repo root (Space metadata: `sdk: docker`, port 8501)
- `keep_alive.py` → was `keep-alive/keep_alive.py`
## Restoring the Streamlit version
```bash
cp streamlit_backup/app.py src/app.py
cp streamlit_backup/requirements.txt requirements.txt
cp streamlit_backup/Dockerfile Dockerfile
cp streamlit_backup/README.md README.md
cp streamlit_backup/keep_alive.py keep-alive/keep_alive.py
```
`src/FineTune/model.py`, `src/feedback.py`, and `src/stats.py` were not touched by the
Gradio migration and don't need restoring.
Full history is also in git (`git log` on this repo) if you need anything beyond these
five files.