MaduRox's picture
Upload folder using huggingface_hub
e3584eb verified
Raw
History Blame Contribute Delete
560 Bytes
import os
import gradio as gr
from fastapi import FastAPI
from ui.dashboard import create_dashboard
# Create FastAPI instance
app = FastAPI(title="Kalpanā Independent Multi-Model Benchmark Controller")
# Create the Gradio Dashboard
demo = create_dashboard()
# Mount the Gradio application onto FastAPI root
app = gr.mount_gradio_app(app, demo, path="/")
if __name__ == "__main__":
import uvicorn
# Launch uvicorn server on port 7860 as expected by Hugging Face Space conventions
uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=False)