osanseviero HF staff commited on
Commit
e61b08d
1 Parent(s): 1cc5925

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -6,14 +6,11 @@ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
6
 
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='text',
15
  outputs='text',
16
- title=title,
17
  examples=[["Hello! My name is Omar"]],
18
  theme="default",
19
  )
 
6
 
7
  def predict(text):
8
  return pipe(text)[0]["translation_text"]
 
 
9
 
10
  iface = gr.Interface(
11
  fn=predict,
12
  inputs='text',
13
  outputs='text',
 
14
  examples=[["Hello! My name is Omar"]],
15
  theme="default",
16
  )