real_state_api_g / main.py
sanbatte's picture
corrige import
3ca6a80
raw
history blame contribute delete
No virus
406 Bytes
from fastapi import FastAPI
from app.routes import prediction
from app.routes.prediction import predict
from app.routes import home
import gradio as gr
app = FastAPI()
app.include_router(
home.router,
tags=["home"],
)
app.include_router(
prediction.router,
prefix="/predict",
tags=["prediction"],
)
iface = gr.Interface(fn=predict, inputs="text", outputs="text")
iface.launch()