justhariharan commited on
Commit
17f6861
·
verified ·
1 Parent(s): e45a517

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -101,6 +101,7 @@ def chat_logic(message, history, smart_mode):
101
  else:
102
  return solve_single(message, history)
103
 
 
104
  # --- UI SETUP ---
105
  demo = gr.ChatInterface(
106
  fn=chat_logic,
@@ -108,12 +109,21 @@ demo = gr.ChatInterface(
108
  gr.Checkbox(label="🔥 Enable Smart Mode (Slow but 82% Accurate)", value=False)
109
  ],
110
  title="🧮 AI Math Tutor (Qwen-1.5B Fine-Tuned)",
111
- description="<b>Portfolio Project:</b> A specialized math solver fine-tuned on GSM8K using LoRA. <br>• <b>Standard Mode:</b> Fast (~70% Acc). <br>• <b>Smart Mode:</b> Uses Majority Voting to reach <b>82% Accuracy</b>.",
 
 
 
 
 
 
 
 
112
  examples=[
113
  ["If I have 30 candies and eat 12, then buy 5 more, how many do I have?", False],
114
- ["It takes 5 machines 5 minutes to make 5 widgets. How long for 100 machines?", True]
115
- ],
116
- theme="soft"
 
117
  )
118
 
119
  if __name__ == "__main__":
 
101
  else:
102
  return solve_single(message, history)
103
 
104
+ # --- UI SETUP ---
105
  # --- UI SETUP ---
106
  demo = gr.ChatInterface(
107
  fn=chat_logic,
 
109
  gr.Checkbox(label="🔥 Enable Smart Mode (Slow but 82% Accurate)", value=False)
110
  ],
111
  title="🧮 AI Math Tutor (Qwen-1.5B Fine-Tuned)",
112
+ description="""
113
+ <b>Portfolio Project:</b> A specialized math solver fine-tuned on GSM8K using LoRA.
114
+ <br><br>
115
+ <b>Features:</b>
116
+ <ul>
117
+ <li><b>Teacher Persona:</b> Explains logic simply.</li>
118
+ <li><b>Smart Mode:</b> Uses 'Majority Voting' to boost accuracy from 70% → 82%.</li>
119
+ </ul>
120
+ """,
121
  examples=[
122
  ["If I have 30 candies and eat 12, then buy 5 more, how many do I have?", False],
123
+ ["It takes 5 machines 5 minutes to make 5 widgets. How long for 100 machines?", True],
124
+ ["Solve the integral solution for x + y + z = 15", True]
125
+ ]
126
+ # theme="soft" <-- THIS LINE WAS REMOVED
127
  )
128
 
129
  if __name__ == "__main__":