DataChat / gradio_app.py
Jkalonji's picture
Update gradio app
d799b27 verified
import gradio as gr
import RAG
dropdown = gr.Dropdown(choices=["distilbert-base-uncased-distilled-squad",
"impira/layoutlm-document-qa",
"impira/layoutlm-invoices"], label="Choose a model")
iface = gr.Interface(fn=RAG.gradio_adapted_RAG, inputs=[dropdown, "text"], outputs="text")
iface.launch()