Spaces:
Sleeping
Sleeping
File size: 339 Bytes
2fadb29 a4b8965 2fadb29 a4b8965 2fadb29 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
from transformers import pipeline
pipeline = pipeline(task="text-generation", model="google/gemma-2-2b")
result = pipeline("the secret to baking a really good cake is ")
def greet(name):
# return "Hello " + name + "!!"
return result
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()
|