Spaces:
Sleeping
Sleeping
File size: 297 Bytes
ee90dc5 f537c9e ee90dc5 1483cd5 76ec0e0 1483cd5 76ec0e0 ee90dc5 |
1 2 3 4 5 6 7 8 9 10 11 |
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()
|