Spaces:
Configuration error
Configuration error
Download openhands/server/static.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/server/static.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/server/static.py
-
curl -L -o static.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/server/static.py
379 Bytes
| from fastapi.staticfiles import StaticFiles | |
| class SPAStaticFiles(StaticFiles): | |
| async def get_response(self, path: str, scope): | |
| try: | |
| return await super().get_response(path, scope) | |
| except Exception: | |
| # FIXME: just making this HTTPException doesn't work for some reason | |
| return await super().get_response('index.html', scope) | |