import gradio as gr from llama_generate 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=False) iface.launch()