Thumbnail_Fixer2.0 / server.py
AdnaPlays's picture
Update server.py
7518733 verified
Raw History Blame Contribute Delete
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)