import gradio as gr from run_localGPT import main def greet(query): return answer iface = gr.Interface(fn=greet, inputs=query, outputs=answer) iface.launch()