GChilukala commited on
Commit
b6da785
·
verified ·
1 Parent(s): 89ae380

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -1427,7 +1427,20 @@ def create_gradio_app():
1427
  with gr.Column():
1428
  gr.Markdown("### 🗣️ Global Content Creation")
1429
  gr.Markdown("*Featuring Hugging Face Helsinki-NLP Translation Models*")
1430
-
 
 
 
 
 
 
 
 
 
 
 
 
 
1431
  base_caption_input = gr.Textbox(
1432
  label="📝 Base Caption",
1433
  placeholder="Paste your generated caption here...",
 
1427
  with gr.Column():
1428
  gr.Markdown("### 🗣️ Global Content Creation")
1429
  gr.Markdown("*Featuring Hugging Face Helsinki-NLP Translation Models*")
1430
+ gr.HTML("""
1431
+ <div style="background: rgba(255, 193, 7, 0.1); border-left: 4px solid #ffc107; padding: 15px; border-radius: 8px; margin: 15px 0;">
1432
+ <div style="display: flex; align-items: center; gap: 10px;">
1433
+ <span style="font-size: 1.2em;">⚠️</span>
1434
+ <div>
1435
+ <strong style="color: #ff8800;">Translation Notice:</strong>
1436
+ <p style="margin: 5px 0 0 0; font-size: 0.9em; opacity: 0.8;">
1437
+ Emojis may be ignored or lost in translation output. Translation models focus on text content and may not preserve emojis. Try with shorter captions if you experience any problems in output.
1438
+ </p>
1439
+ </div>
1440
+ </div>
1441
+ </div>
1442
+ """)
1443
+
1444
  base_caption_input = gr.Textbox(
1445
  label="📝 Base Caption",
1446
  placeholder="Paste your generated caption here...",