Spaces:
Runtime error
Runtime error
import gradio as gr | |
from confidence import run | |
def greet(query): | |
results = run(query) | |
return results | |
sample_list = [ | |
"Who is Lihu Chen?.", | |
"Who is Gaël Varoquaux?" | |
] | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text", examples=sample_list, cache_examples=True) | |
iface.launch() |