File size: 289 Bytes
2b75707
 
 
b19a44d
2b75707
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr
from transformers import pipeline

pipe = pipeline("text-generation", model="TheBloke/PMC_LLAMA-7B-10-Epoch-SuperHOT-8K-GPTQ")

def greet(name):
    return pipe('who is the president of USA')

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()