File size: 375 Bytes
a09c868 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import gradio as gr
from model import rag
demo = gr.Interface(
fn = rag,
inputs = gr.Textbox(lines=5, label="Enter your medical question here"),
outputs = gr.Textbox(lines=10, label="Generated Answer"),
title = "Medical QA",
description = "Type your query and get a model generated response.",
theme = gr.themes.Glass()
)
demo.launch()
|