JJFrancisco commited on
Commit
af19d57
1 Parent(s): 2ff2e3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  def greet(name):
4
- onmt_translate -src name -model NOS-MT-en-gl.pt --output ./output_file.txt --replace_unk -gpu 0
5
  return ./output_file.txt
6
 
7
  demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
 
1
  import gradio as gr
2
 
3
  def greet(name):
4
+ onmt_translate -src name -model NOS-MT-en-gl.pt --output ./output_file.txt
5
  return ./output_file.txt
6
 
7
  demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")