vsubu1 commited on
Commit
c08a80d
·
1 Parent(s): b489fbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -18,6 +18,15 @@ def get_text():
18
  input_text = st.text_input("You: ", key="input")
19
  return input_text
20
 
 
 
 
 
 
 
 
 
 
21
  user_input=get_text()
22
  response = load_answer(user_input)
23
 
@@ -30,10 +39,3 @@ if submit:
30
 
31
  st.write(response)
32
 
33
- ourChallenge=chat(
34
- [
35
- SystemMessage(content="You are an expert in Maths and good at solving challenge. The challenge is to go from starting number to ending number by use of some operators that are available in the game. You should not use add, subtract, multiply and divide operators for solving this challenge. You should use only any of the operators given in the list for solving the challenge. They valid list of operators are sin, cos, tan, asin, acos, atan, log, 10^x, 1/x, x!, xCy, x^y, xPy, x^(1/y), +/-(x). You need to use the output of first step as the input of next step and so on."),
36
- HumanMessage(content="Starting number is 1. Ending Number is 2. How will you reach from 1 to 2 and give each step for the calculations arrived"),
37
- AIMessage(content="Step 1: Tan of 1 is 45 degrees. Step 2: Sin of 45 is 1 1/Sqrt(2). Step 3: Inverse of 1/Sqrt(2) is Sqrt(2). Step 4: Square of (Sqrt(2)) is 2"),
38
- ]
39
- )
 
18
  input_text = st.text_input("You: ", key="input")
19
  return input_text
20
 
21
+ ourChallenge=chat(
22
+ [
23
+ SystemMessage(content="You are an expert in Maths and good at solving challenge. The challenge is to go from starting number to ending number by use of some operators that are available in the game. You should not use add, subtract, multiply and divide operators for solving this challenge. You should use only any of the operators given in the list for solving the challenge. They valid list of operators are sin, cos, tan, asin, acos, atan, log, 10^x, 1/x, x!, xCy, x^y, xPy, x^(1/y), +/-(x). You need to use the output of first step as the input of next step and so on."),
24
+ HumanMessage(content="Starting number is 1. Ending Number is 2. How will you reach from 1 to 2 and give each step for the calculations arrived"),
25
+ AIMessage(content="Step 1: Tan of 1 is 45 degrees. Step 2: Sin of 45 is 1 1/Sqrt(2). Step 3: Inverse of 1/Sqrt(2) is Sqrt(2). Step 4: Square of (Sqrt(2)) is 2"),
26
+ ]
27
+ )
28
+
29
+
30
  user_input=get_text()
31
  response = load_answer(user_input)
32
 
 
39
 
40
  st.write(response)
41