FractalAIR commited on
Commit
b962c46
·
verified ·
1 Parent(s): a878ad7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -79,9 +79,9 @@ def generate_response(user_message, max_tokens, temperature, top_p, history_stat
79
  yield new_history, new_history
80
 
81
  example_messages = {
82
- "Combinatorics": "From all the English alphabets, five letters are chosen and are arranged in alphabetical order. The total number of ways, in which the middle letter is 'M', is?",
83
- "Co-ordinate Geometry": "A circle \\(C\\) of radius 2 lies in the second quadrant and touches both the coordinate axes. Let \\(r\\) be the radius of a circle that has centre at the point \\((2, 5)\\) and intersects the circle \\(C\\) at exactly two points. If the set of all possible values of \\(r\\) is the interval \\((\\alpha, \\beta)\\), then \\(3\\beta - 2\\alpha\\) is?",
84
- "Prob-Stats": "A coin is tossed three times. Let \(X\) denote the number of times a tail follows a head. If \\(\\mu\\) and \\(\\sigma^2\\) denote the mean and variance of \\(X\\), then the value of \\(64(\\mu + \\sigma^2)\\) is?"
85
  }
86
 
87
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
@@ -136,9 +136,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
136
  clear_button = gr.Button("Clear")
137
  gr.Markdown("**Try these examples:**")
138
  with gr.Row():
139
- example1_button = gr.Button("Combinatorics")
140
- example2_button = gr.Button("Co-ordinate Geometry")
141
- example3_button = gr.Button("Prob-Stats")
142
 
143
  submit_button.click(
144
  fn=generate_response,
@@ -157,17 +157,17 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
157
  )
158
 
159
  example1_button.click(
160
- fn=lambda: gr.update(value=example_messages["Combinatorics"]),
161
  inputs=None,
162
  outputs=user_input
163
  )
164
  example2_button.click(
165
- fn=lambda: gr.update(value=example_messages["Co-ordinate Geometry"]),
166
  inputs=None,
167
  outputs=user_input
168
  )
169
  example3_button.click(
170
- fn=lambda: gr.update(value=example_messages["Prob-Stats"]),
171
  inputs=None,
172
  outputs=user_input
173
  )
 
79
  yield new_history, new_history
80
 
81
  example_messages = {
82
+ "JEE Main 2025 Combinatorics": "From all the English alphabets, five letters are chosen and are arranged in alphabetical order. The total number of ways, in which the middle letter is 'M', is?",
83
+ "JEE Main 2025 Co-ordinate Geometry": "A circle \\(C\\) of radius 2 lies in the second quadrant and touches both the coordinate axes. Let \\(r\\) be the radius of a circle that has centre at the point \\((2, 5)\\) and intersects the circle \\(C\\) at exactly two points. If the set of all possible values of \\(r\\) is the interval \\((\\alpha, \\beta)\\), then \\(3\\beta - 2\\alpha\\) is?",
84
+ "JEE Main 2025 Prob-Stats": "A coin is tossed three times. Let \(X\) denote the number of times a tail follows a head. If \\(\\mu\\) and \\(\\sigma^2\\) denote the mean and variance of \\(X\\), then the value of \\(64(\\mu + \\sigma^2)\\) is?"
85
  }
86
 
87
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
136
  clear_button = gr.Button("Clear")
137
  gr.Markdown("**Try these examples:**")
138
  with gr.Row():
139
+ example1_button = gr.Button("JEE Main 2025 Combinatorics")
140
+ example2_button = gr.Button("JEE Main 2025 Co-ordinate Geometry")
141
+ example3_button = gr.Button("JEE Main 2025 Prob-Stats")
142
 
143
  submit_button.click(
144
  fn=generate_response,
 
157
  )
158
 
159
  example1_button.click(
160
+ fn=lambda: gr.update(value=example_messages["JEE Main 2025 Combinatorics"]),
161
  inputs=None,
162
  outputs=user_input
163
  )
164
  example2_button.click(
165
+ fn=lambda: gr.update(value=example_messages["JEE Main 2025 Co-ordinate Geometry"]),
166
  inputs=None,
167
  outputs=user_input
168
  )
169
  example3_button.click(
170
+ fn=lambda: gr.update(value=example_messages["JEE Main 2025 Prob-Stats"]),
171
  inputs=None,
172
  outputs=user_input
173
  )