TenzinGayche commited on
Commit
aeaf737
·
verified ·
1 Parent(s): fcc0568

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -115,9 +115,7 @@ def stream_translation(user_message: str, messages: list) -> Iterator[list]:
115
 
116
  yield messages
117
 
118
- with gr.Blocks(title="Monlam Translation System", css="""
119
- /* ... (keep existing CSS) */
120
- """, theme=gr.themes.Soft()) as demo:
121
  gr.Markdown("# 💭 Samloe Melong Translate")
122
  gr.Markdown("It's a proof of concept. The model first generates detailed reasoning and then provides the translation. It only works for Tibetan to English (for now)!!")
123
 
@@ -137,7 +135,7 @@ with gr.Blocks(title="Monlam Translation System", css="""
137
  )
138
  submit_btn = gr.Button("Translate", variant="primary", scale=0.15)
139
 
140
- # Add example section AFTER defining input_box
141
  examples = [
142
  ["རྟག་པར་མངོན་ཞེན་གྱིས་བསླང་བའམ། །གཉེན་པོ་ཡིས་ནི་བསླང་བ་ཉིད། །ཡོན་ཏན་དང་ནི་ཕན་འདོགས་ཞིང་། །སྡུག་བསྔལ་བ་ལ་དགེ་ཆེན་འགྱུར། "],
143
  ["ད་ཆ་ཨ་རིའི་ཚོང་རའི་ནང་དུ་གླེང་གཞི་ཤུགས་ཆེར་འགྱུར་བཞིན་པའི་ Deep Seek ཞེས་རྒྱ་ནག་གི་མི་བཟོས་རིག་ནུས་མཉེན་ཆས་དེས་བོད་ནང་དུ་དེ་སྔ་ནས་དམ་དྲག་ཤུགས་ཆེ་ཡོད་པའི་ཐོག་ད་དུང་ཤུགས་ཆེ་རུ་གཏོང་སྲིད་པ་གསུངས་སོང་།"],
 
115
 
116
  yield messages
117
 
118
+ with gr.Blocks(title="Monlam Translation System", theme=gr.themes.Soft()) as demo:
 
 
119
  gr.Markdown("# 💭 Samloe Melong Translate")
120
  gr.Markdown("It's a proof of concept. The model first generates detailed reasoning and then provides the translation. It only works for Tibetan to English (for now)!!")
121
 
 
135
  )
136
  submit_btn = gr.Button("Translate", variant="primary", scale=0.15)
137
 
138
+
139
  examples = [
140
  ["རྟག་པར་མངོན་ཞེན་གྱིས་བསླང་བའམ། །གཉེན་པོ་ཡིས་ནི་བསླང་བ་ཉིད། །ཡོན་ཏན་དང་ནི་ཕན་འདོགས་ཞིང་། །སྡུག་བསྔལ་བ་ལ་དགེ་ཆེན་འགྱུར། "],
141
  ["ད་ཆ་ཨ་རིའི་ཚོང་རའི་ནང་དུ་གླེང་གཞི་ཤུགས་ཆེར་འགྱུར་བཞིན་པའི་ Deep Seek ཞེས་རྒྱ་ནག་གི་མི་བཟོས་རིག་ནུས་མཉེན་ཆས་དེས་བོད་ནང་དུ་དེ་སྔ་ནས་དམ་དྲག་ཤུགས་ཆེ་ཡོད་པའི་ཐོག་ད་དུང་ཤུགས་ཆེ་རུ་གཏོང་སྲིད་པ་གསུངས་སོང་།"],