gokilashree commited on
Commit
43f7e99
1 Parent(s): f1e3355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ def generate_short_paragraph_from_text(translated_text):
56
  translated_text,
57
  max_length=80, # Reduced to 80 tokens
58
  num_return_sequences=1,
59
- temperature=0.6,
60
  top_p=0.8,
61
  truncation=True # Added truncation to avoid long sequences
62
  )[0]['generated_text']
@@ -99,7 +99,7 @@ iface = gr.Interface(
99
  gr.Textbox(label="Generated Short Paragraph"),
100
  gr.Image(label="Generated Image")],
101
  title="Tamil to English Translation, Short Paragraph Generation, and Image Creation",
102
- description="Translate Tamil text to English using Facebook's mbart-large-50 model, generate a short paragraph, and create an image using the translated text.",
103
 
104
  )
105
 
 
56
  translated_text,
57
  max_length=80, # Reduced to 80 tokens
58
  num_return_sequences=1,
59
+ temperature=0.2,
60
  top_p=0.8,
61
  truncation=True # Added truncation to avoid long sequences
62
  )[0]['generated_text']
 
99
  gr.Textbox(label="Generated Short Paragraph"),
100
  gr.Image(label="Generated Image")],
101
  title="Tamil to English Translation, Short Paragraph Generation, and Image Creation",
102
+ description="Translate Tamil text to English, generate a short paragraph, and create an image using the translated text.",
103
 
104
  )
105