Proba_Nos / app.py
JJFrancisco's picture
Update app.py
af19d57 verified
raw
history blame
266 Bytes
import gradio as gr
def greet(name):
onmt_translate -src name -model NOS-MT-en-gl.pt --output ./output_file.txt
return ./output_file.txt
demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
if __name__ == "__main__":
demo.launch()