groros / app.py
TRaw's picture
Create app.py
f58a39a
raw
history blame contribute delete
272 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("text-generation", model="Gryphe/MythoBoros-13b")
def predict(text):
return pipe(text)[0]["text-generation"]
demo = gr.Interface(
fn=predict,
inputs='text',
outputs='text',
)
demo.launch()