TRIA / app.py
shayanspd's picture
Create app.py
18e450f verified
Raw
History Blame Contribute Delete
314 Bytes
import gradio as gr
def translate(text):
return f"TRIA Translation Preview:\n\n{text}"
demo = gr.Interface(
fn=translate,
inputs=gr.Textbox(lines=8, label="Input Text"),
outputs=gr.Textbox(lines=8, label="Output"),
title="TRIA",
description="Adaptive translation preserving meaning and context"
)
demo.launch()