Download app.py from Wizzas/DefectRAG: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/Wizzas/DefectRAG/resolve/main/app.py
- Command line
-
hf download hf://spaces/Wizzas/DefectRAG/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Wizzas/DefectRAG/resolve/main/app.py
380 Bytes
| import os | |
| from pathlib import Path | |
| os.environ['DEFECTRAG_SPACE_UI']=str(Path(__file__).parent/'frontend/dist') | |
| os.environ['GRADIO_ANALYTICS_ENABLED']='False' | |
| os.environ['DEFECTRAG_LIVE_RAG']='1' | |
| os.environ['DEFECTRAG_STAFF_BACKEND']='1' | |
| from deployment.space.app import server | |
| server.launch(server_name='0.0.0.0',server_port=7860,ssr_mode=False,show_error=True,run_history=False) | |