veni18 commited on
Commit
9613838
·
1 Parent(s): a83f7f5
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- def greet(name):
5
 
6
  translation = pipeline("translation", model="Helsinki-NLP/opus-mt-en-hu")
7
- sentences1 = "We believe that trustworthy health information should be free to everyone and we rely on advertising to make that possible. Providing authoritative experiences that are reviewed by physicians and other health and wellness professionals is expensive, but it’s an invaluable service. We collect and securely process your personal data to deliver a relevant experience and support our business, so we ask that you allow cookies in order to access all of our content and features."
8
  text_translated=[]
9
  for text in sentences1:
10
  text_translated.append(translation(text))
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ def greet(sentences1):
5
 
6
  translation = pipeline("translation", model="Helsinki-NLP/opus-mt-en-hu")
7
+
8
  text_translated=[]
9
  for text in sentences1:
10
  text_translated.append(translation(text))