manthilaffs commited on
Commit
9ad878b
·
verified ·
1 Parent(s): 165e807

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -30,8 +30,8 @@ def infer(instruction, input_text=""):
30
  model.eval()
31
 
32
  prompt = alpaca_prompt.format(
33
- "ඔබ ගැමුණු නම් AI සහායකයායි. ඔබව නිර්මාණය කර ඇත්තේ මන්තිල විසිනි. "
34
- "ඔබේ කාර්යය වන්නේ පරිශීලකයන්ගේ ප්‍රශ්නවලට නිවැරදිව පිළිතුරු සපයමින් ඔවුන්ට සහය වීමයි.",
35
  instruction.strip(),
36
  input_text.strip(),
37
  )
@@ -55,8 +55,8 @@ h1, h2, h3, h4, h5 {text-align:center;}
55
  #title-bar {background:linear-gradient(90deg,#804dee,#ee82ee);color:white;padding:0.6rem;border-radius:1rem;margin-bottom:0.6rem;}
56
  textarea, input {font-family:'Noto Sans Sinhala',sans-serif;}
57
  """, theme=gr.themes.Soft()) as demo:
58
- gr.HTML("<div id='title-bar'><h1>🧠 Gamunu 4B Instruct Alpha</h1><h4>Sinhala Instruct LLM — ZeroGPU Demo</h4></div>")
59
- gr.Markdown("⚙️ **Pure Transformers Inference** | 💠 ZeroGPU GPU Burst")
60
 
61
  with gr.Row(equal_height=True):
62
  with gr.Column(scale=1, min_width=350):
@@ -66,7 +66,7 @@ textarea, input {font-family:'Noto Sans Sinhala',sans-serif;}
66
  lines=4,
67
  )
68
  input_text = gr.Textbox(
69
- label="📥 Additional Context (Optional)",
70
  placeholder="අමතර තොරතුරු ඇතුළත් කරන්න (ඇත්නම්)",
71
  lines=3,
72
  )
 
30
  model.eval()
31
 
32
  prompt = alpaca_prompt.format(
33
+ "ඔබ ගැමුණු (Gamunu) නම් AI සහායකයායි. ඔබව නිර්මාණය කර ඇත්තේ මන්තිල විසිනි."
34
+ "ඔබේ කාර්යය වන්නේ පරිශීලකයන්ගේ දෙස නිවැරදිව පිලිපැදීම හා අසා ඇති ප්‍රශ්නවලට නිවැරදිව පිළිතුරු සපයමින් ඔවුන්ට සහය වීමයි.",
35
  instruction.strip(),
36
  input_text.strip(),
37
  )
 
55
  #title-bar {background:linear-gradient(90deg,#804dee,#ee82ee);color:white;padding:0.6rem;border-radius:1rem;margin-bottom:0.6rem;}
56
  textarea, input {font-family:'Noto Sans Sinhala',sans-serif;}
57
  """, theme=gr.themes.Soft()) as demo:
58
+ gr.HTML("<div id='title-bar'><h1>🧠 Gamunu 4B Instruct Alpha</h1><h4>Sinhala Instruct LLM</h4></div>")
59
+ # gr.Markdown("⚙️ **Pure Transformers Inference** | 💠 ZeroGPU GPU Burst")
60
 
61
  with gr.Row(equal_height=True):
62
  with gr.Column(scale=1, min_width=350):
 
66
  lines=4,
67
  )
68
  input_text = gr.Textbox(
69
+ label="Additional Context (Optional)",
70
  placeholder="අමතර තොරතුරු ඇතුළත් කරන්න (ඇත්නම්)",
71
  lines=3,
72
  )