rugpt3 / app.py
AlekseyKorshuk's picture
Update app.py
df5962a
import gradio as gr
from gradio import mix
title = "RUGPT3"
description = "Gradio Demo for RUGPT3. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
examples = [
['Меня зовут Томас и мой основной']
]
io = gr.Interface.load("models/sberbank-ai/rugpt3large_based_on_gpt2")
def inference(text):
return io(text)
gr.Interface(
inference,
[gr.inputs.Textbox(label="Input")],
gr.outputs.Textbox(label="Output"),
examples=examples,
# article=article,
title=title,
description=description).launch(enable_queue=True, cache_examples=True)