dpassov's picture
Update app.py
4545e10 verified
raw
history blame contribute delete
No virus
346 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
my_pipe = pipeline("text-generation", model="TheBloke/Yarn-Mistral-7B-128k-GGUF")
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()