import gradio as gr from transformers import AutoTokenizer def greet(prompt): pipe = pipeline("conversational", model="Amod/falcon7b-fine-tuned-therapy-merged", trust_remote_code=True) return pipe(prompt) iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()