Spaces:
Runtime error
Runtime error
# 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() |