Spaces:
Sleeping
Sleeping
Download server.py from Adnaplays87/Thumbnail_Fixer2.0: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/Adnaplays87/Thumbnail_Fixer2.0/resolve/main/server.py
- Command line
-
hf download hf://spaces/Adnaplays87/Thumbnail_Fixer2.0/server.py
-
curl -L -o server.py https://huggingface.co/spaces/Adnaplays87/Thumbnail_Fixer2.0/resolve/main/server.py
482 Bytes
| """ | |
| Render: Thumbnail Editor atrás do GamifyGate (mesmo esquema do Content Processor). | |
| Start command (Dockerfile): | |
| uvicorn server:app --host 0.0.0.0 --port ${PORT:-10000} --proxy-headers --forwarded-allow-ips="*" | |
| """ | |
| import gradio as gr | |
| from fastapi import FastAPI | |
| from app import LAUNCH_KWARGS, _params, demo | |
| _mount_kwargs = {k: v for k, v in LAUNCH_KWARGS.items() if k in _params(gr.mount_gradio_app)} | |
| app = gr.mount_gradio_app(FastAPI(), demo, path="/", **_mount_kwargs) |