File size: 361 Bytes
86416c1
 
 
9a28abc
86416c1
 
27e93a3
9a28abc
 
 
a91ee97
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# How to poop like a cat?

import gradio as gr
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)

# Create Gradio interface
iface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
iface.launch()