soarhigh's picture
Update app.py
1bed98a
raw
history blame contribute delete
387 Bytes
# -*- coding: utf-8 -*-
"""Demo.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1vy72Qs-scdzH68lhYbGN11fLzcE9Md1O
"""
import gradio as gr
import transformers
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-ko-en")
demo = gr.Interface.from_pipeline(pipe)
demo.launch()