Abubakar Abid commited on
Commit
ecd7d84
1 Parent(s): 1becd76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,14 +7,14 @@ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
7
  def predict(text):
8
  return pipe(text)[0]["translation_text"]
9
 
10
- title = "Interactive demo: Helsinki-NLP English to Spanish Translation"
11
 
12
  iface = gr.Interface(
13
  fn=predict,
14
  inputs=[gr.inputs.Textbox(label="text", lines=3)],
15
  outputs='text',
16
  title=title,
17
- examples=[["Hello! My name is Omar"], ["I like this workshop"]]
18
  )
19
 
20
  iface.launch(debug=True)
 
7
  def predict(text):
8
  return pipe(text)[0]["translation_text"]
9
 
10
+ title = "English to Spanish Translation (forked from osanseviero/test_gradio)"
11
 
12
  iface = gr.Interface(
13
  fn=predict,
14
  inputs=[gr.inputs.Textbox(label="text", lines=3)],
15
  outputs='text',
16
  title=title,
17
+ examples=[["Hello! My name is Abubakar"], ["How are you?"]]
18
  )
19
 
20
  iface.launch(debug=True)