Lihuchen's picture
Upload 3 files
686aa3a
raw
history blame
350 Bytes
import gradio as gr
from confidence import run
def greet(query):
results = run(query, sample_size=5)
return results
sample_list = [
"Tell me something about Lihu Chen, e.g., birth date and place and short bio ",
]
iface = gr.Interface(fn=greet, inputs="text", outputs="text", examples=sample_list, cache_examples=True)
iface.launch()