File size: 346 Bytes
e31ba85
7dde59b
b841138
4545e10
e31ba85
8517b94
7c81ed9
2be97d5
d64a64c
8517b94
e31ba85
1
2
3
4
5
6
7
8
9
10
11
12
# 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()