dpassov's picture
Update app.py
d64a64c verified
raw
history blame
345 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
my_pipe = pipeline("text-generation", model="NousResearch/Yarn-Mistral-7b-128k")
def get_class_1(input):
return my_pipe(input)
# Start interface
iface = gr.Interface(fn=get_class_1, inputs="text", outputs=['text'], title='hello', description='LLM')
iface.launch()