Spaces:
Sleeping
Sleeping
File size: 546 Bytes
0304edb 2ba4f98 0304edb 3444a36 2ba4f98 0304edb 3444a36 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import gradio as gr
from fastapi import FastAPI
from app_gradio_fastapi import routes
from app_gradio_fastapi.helpers.formatters import request_formatter
CUSTOM_GRADIO_PATH = "/"
app = FastAPI(title="logging_app", version="1.0")
app.include_router(routes.router)
io = gr.Interface(
request_formatter,
inputs=[
gr.Textbox(lines=1, placeholder=None, label="Text input"),
],
outputs=[
gr.Textbox(lines=1, placeholder=None, label="Text Output"),
],
)
app = gr.mount_gradio_app(app, io, path=CUSTOM_GRADIO_PATH)
|