File size: 482 Bytes
52649ce
 
 
 
 
 
 
 
 
 
7518733
52649ce
 
7518733
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
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)