llm4movies / app.py
charoori's picture
Update app.py
3be8507
raw
history blame contribute delete
266 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("translation", model="charoori/llm4movies")
def predict(text):
return pipe(text)[0]["translation_text"]
demo = gr.Interface(
fn=predict,
inputs='text',
outputs='text',
)
demo.launch()