gokilashree commited on
Commit
af0cc42
·
verified ·
1 Parent(s): fa2f8ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def generate_short_paragraph_from_text(translated_text):
53
  try:
54
  print(f"Generating a short paragraph from translated text: {translated_text}")
55
  # Generate a shorter paragraph from the translated text using smaller settings
56
- paragraph = text_generator(translated_text, max_length=150, num_return_sequences=1, temperature=0.2, top_p=0.8)[0]['generated_text']
57
  print(f"Paragraph generation completed: {paragraph}")
58
  return paragraph
59
  except Exception as e:
 
53
  try:
54
  print(f"Generating a short paragraph from translated text: {translated_text}")
55
  # Generate a shorter paragraph from the translated text using smaller settings
56
+ paragraph = text_generator(translated_text, max_length=80, num_return_sequences=1, temperature=0.6, top_p=0.8)[0]['generated_text']
57
  print(f"Paragraph generation completed: {paragraph}")
58
  return paragraph
59
  except Exception as e: