ayaaa123 commited on
Commit
a5e55d9
·
verified ·
1 Parent(s): 3e1d66d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -6,10 +6,9 @@ from transformers import pipeline
6
  translator = pipeline("translation_en_to_fr")
7
 
8
 
9
- def translate(Prompt):
10
 
11
- prompt = "translate English to French: How are you?"
12
- prompt=prompt +" "+Prompt
13
  result = translator(prompt, max_length=50, num_return_sequences=1 , temperature=0.7)
14
 
15
  # Print the generated text
 
6
  translator = pipeline("translation_en_to_fr")
7
 
8
 
9
+ def translate(prompt):
10
 
11
+
 
12
  result = translator(prompt, max_length=50, num_return_sequences=1 , temperature=0.7)
13
 
14
  # Print the generated text