support remote access using fastapi; add double click/scroll; enable local run omniparser

This commit is contained in:
yadonglu
2025-01-22 19:24:34 -08:00
parent e0a845d35c
commit ce199d52ab
9 changed files with 1120 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
from fastapi import FastAPI
import gradio as gr
app = FastAPI()
def greet(name):
return f"Hello, {name}!"
gradio_interface = gr.Interface(fn=greet, inputs="text", outputs="text")
gradio_app = gr.routes.App.create_app(gradio_interface)
app.mount("/gradio", gradio_app)