Spaces:
Sleeping
Sleeping
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() |