Spaces:
Running on Zero
Running on Zero
Download app.py from reflection/iris: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/spaces/reflection/iris/resolve/refs%2Fpr%2F13/app.py
- Command line
-
hf download hf://spaces/reflection/iris@refs/pr/13/app.py
-
curl -L -o app.py https://huggingface.co/spaces/reflection/iris/resolve/refs%2Fpr%2F13/app.py
551 Bytes
| """Hugging Face Gradio entry point for Iris.""" | |
| import os | |
| import pathlib | |
| from backend import web | |
| if __name__ == '__main__': | |
| port = int(os.environ.get('GRADIO_SERVER_PORT', '7860')) | |
| app = web.create_app( | |
| pathlib.Path(__file__).parent / 'frontend/dist', | |
| os.environ['BEAM_URL'], | |
| os.environ.get('BEAM_URL_TOKEN'), | |
| score_url=os.environ.get('IRIS_BEAM_SCORE_URL'), | |
| ) | |
| app.launch( | |
| server_name=os.environ.get('GRADIO_SERVER_NAME', '0.0.0.0'), | |
| server_port=port, | |
| share=False, | |
| ssr_mode=False, | |
| run_history=False, | |
| ) | |