philosopher-from-god's picture
Update app.py
27e93a3 verified
raw
history blame
361 Bytes
# 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()