Update app.py
Browse files
app.py
CHANGED
@@ -92,9 +92,10 @@ def generate_response(user_message,
|
|
92 |
|
93 |
example_messages = {
|
94 |
"IIT-JEE 2024 Mathematics": "A student appears for a quiz consisting of only true-false type questions and answers all the questions. The student knows the answers of some questions and guesses the answers for the remaining questions. Whenever the student knows the answer of a question, he gives the correct answer. Assume that probability of the student giving the correct answer for a question, given that he has guessed it, is $\\frac{1}{2}$. Also assume that the probability of the answer for a question being guessed, given that the student's answer is correct, is $\\frac{1}{6}$. Then the probability that the student knows the answer of a randomly chosen question is?",
|
95 |
-
"IIT-JEE 2024
|
96 |
"Goldman Sachs Interview Puzzle": "Four friends need to cross a dangerous bridge at night. Unfortunately, they have only one torch and the bridge is too dangerous to cross without one. The bridge is only strong enough to support two people at a time. Not all people take the same time to cross the bridge. Times for each person: 1 min, 2 mins, 7 mins and 10 mins. What is the shortest time needed for all four of them to cross the bridge?",
|
97 |
-
"JEE
|
|
|
98 |
}
|
99 |
|
100 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
@@ -132,7 +133,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
132 |
|
133 |
For training recipe details on how this model was built, please check [here](https://huggingface.co/FractalAIResearch/Ramanujan-Ganit-R1-14B)
|
134 |
|
135 |
-
Try the example problems below from
|
136 |
|
137 |
NOTE: Once you close this demo window, all currently saved conversations will be lost.
|
138 |
"""
|
@@ -161,10 +162,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
161 |
clear_button = gr.Button("Clear", scale=1)
|
162 |
gr.Markdown("**Try these examples:**")
|
163 |
with gr.Row():
|
164 |
-
example1_button = gr.Button("IIT-JEE
|
165 |
-
example2_button = gr.Button("IIT-JEE 2024
|
166 |
example3_button = gr.Button("Goldman Sachs Interview Puzzle")
|
167 |
-
example4_button = gr.Button("JEE
|
168 |
|
169 |
def update_conversation_list():
|
170 |
return [conversations[cid]["title"] for cid in conversations]
|
@@ -220,10 +221,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
220 |
outputs=[current_convo_id, history_state, chatbot]
|
221 |
)
|
222 |
|
223 |
-
example1_button.click(fn=lambda: gr.update(value=example_messages["IIT-JEE
|
224 |
-
example2_button.click(fn=lambda: gr.update(value=example_messages["IIT-JEE 2024
|
225 |
example3_button.click(fn=lambda: gr.update(value=example_messages["Goldman Sachs Interview Puzzle"]), inputs=None, outputs=user_input)
|
226 |
-
example4_button.click(fn=lambda: gr.update(value=example_messages["JEE
|
227 |
|
228 |
#demo.launch(share=True, ssr_mode=False)
|
229 |
|
|
|
92 |
|
93 |
example_messages = {
|
94 |
"IIT-JEE 2024 Mathematics": "A student appears for a quiz consisting of only true-false type questions and answers all the questions. The student knows the answers of some questions and guesses the answers for the remaining questions. Whenever the student knows the answer of a question, he gives the correct answer. Assume that probability of the student giving the correct answer for a question, given that he has guessed it, is $\\frac{1}{2}$. Also assume that the probability of the answer for a question being guessed, given that the student's answer is correct, is $\\frac{1}{6}$. Then the probability that the student knows the answer of a randomly chosen question is?",
|
95 |
+
"IIT-JEE 2024 Physics": "The specific heat capacity of a substance is temperature dependent and is given by the formula C=kT, where k is a constant of suitable dimensions in SI units, and T is the absolute temperature. If the heat required to raise the temperature of 1 kg of the substance from –73°C to 27°C is nk, the value of n is?",
|
96 |
"Goldman Sachs Interview Puzzle": "Four friends need to cross a dangerous bridge at night. Unfortunately, they have only one torch and the bridge is too dangerous to cross without one. The bridge is only strong enough to support two people at a time. Not all people take the same time to cross the bridge. Times for each person: 1 min, 2 mins, 7 mins and 10 mins. What is the shortest time needed for all four of them to cross the bridge?",
|
97 |
+
"IIT-JEE 2025 Mathematics": "Let 𝑆 be the set of all seven-digit numbers that can be formed using the digits 0, 1 and 2. For example, 2210222 is in 𝑆, but 0210222 is NOT in 𝑆.
|
98 |
+
Then the number of elements 𝑥 in 𝑆 such that at least one of the digits 0 and 1 appears exactly twice in 𝑥, is ?"
|
99 |
}
|
100 |
|
101 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
|
133 |
|
134 |
For training recipe details on how this model was built, please check [here](https://huggingface.co/FractalAIResearch/Ramanujan-Ganit-R1-14B)
|
135 |
|
136 |
+
Try the example problems below from various popular entrance examinations/interviews or type in your own problems to see how our model breaks down and solves complex reasoning problems.
|
137 |
|
138 |
NOTE: Once you close this demo window, all currently saved conversations will be lost.
|
139 |
"""
|
|
|
162 |
clear_button = gr.Button("Clear", scale=1)
|
163 |
gr.Markdown("**Try these examples:**")
|
164 |
with gr.Row():
|
165 |
+
example1_button = gr.Button("IIT-JEE 2025 Mathematics")
|
166 |
+
example2_button = gr.Button("IIT-JEE 2024 Physics")
|
167 |
example3_button = gr.Button("Goldman Sachs Interview Puzzle")
|
168 |
+
example4_button = gr.Button("IIT-JEE 2024 Mathematics")
|
169 |
|
170 |
def update_conversation_list():
|
171 |
return [conversations[cid]["title"] for cid in conversations]
|
|
|
221 |
outputs=[current_convo_id, history_state, chatbot]
|
222 |
)
|
223 |
|
224 |
+
example1_button.click(fn=lambda: gr.update(value=example_messages["IIT-JEE 2025 Mathematics"]), inputs=None, outputs=user_input)
|
225 |
+
example2_button.click(fn=lambda: gr.update(value=example_messages["IIT-JEE 2024 Physics"]), inputs=None, outputs=user_input)
|
226 |
example3_button.click(fn=lambda: gr.update(value=example_messages["Goldman Sachs Interview Puzzle"]), inputs=None, outputs=user_input)
|
227 |
+
example4_button.click(fn=lambda: gr.update(value=example_messages["IIT-JEE 2024 Mathematics"]), inputs=None, outputs=user_input)
|
228 |
|
229 |
#demo.launch(share=True, ssr_mode=False)
|
230 |
|