Spaces:
Running on Zero
Running on Zero
Download app.py from shareefmx/pdf-knowledge-assistant: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/shareefmx/pdf-knowledge-assistant/resolve/main/app.py
- Command line
-
hf download hf://spaces/shareefmx/pdf-knowledge-assistant/app.py
-
curl -L -o app.py https://huggingface.co/spaces/shareefmx/pdf-knowledge-assistant/resolve/main/app.py
505 Bytes
| """Hugging Face Spaces Entrypoint. | |
| Launches the PDF Knowledge Assistant Gradio interface. | |
| """ | |
| try: | |
| import spaces | |
| except Exception: | |
| pass | |
| from app.config import get_settings, setup_logging | |
| from app.ui.gradio_app import create_ui | |
| if __name__ == "__main__": | |
| settings = get_settings() | |
| setup_logging(settings.log_level) | |
| demo = create_ui() | |
| demo.launch( | |
| server_name=settings.app_host, | |
| server_port=7860, # Standard Hugging Face Spaces port | |
| share=False, | |
| ) | |