AnanthulaShravya commited on
Commit
76fe8d1
·
verified ·
1 Parent(s): 6651b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -6,14 +6,15 @@ st.title('Number Doubler')
6
 
7
  user_input = st.number_input('Enter a number')
8
 
9
- def double_number(number):
10
- url = 'http://localhost:8000/double_number'
11
- data = {"number": number}
12
- response = requests.post(url, json=data)
13
- return response.json()
14
 
15
  def kickoff(inputs={}):
16
  return inputs
 
17
  til_content = st.text_area('Enter what you learnt today:',
18
  "* Quantization is the process of reducing the size of LLM models by reducing the underlying weights.\n"
19
  "* The weights are reduced by scaling down the datatypes from a datatype that takes larger space to a data type that takes a smaller space, this is also known as downcasting.\n"
@@ -22,7 +23,7 @@ til_content = st.text_area('Enter what you learnt today:',
22
  "* I learnt how to use Go Routines to handle concurrency in React.\n",
23
  key='til_content', help='Enter what you learnt today')
24
 
25
- if st.button("Get Feedback"):
26
  with st.status(
27
  "🤖 **Analysing TIL...**", state="running", expanded=True
28
  ) as status:
@@ -37,10 +38,10 @@ til_content = st.text_area('Enter what you learnt today:',
37
  expanded=False,
38
  )
39
 
40
- if st.button('Double'):
41
- if user_input:
42
- result = double_number(user_input)
43
- st.write('Doubled Number:', result['doubled_number'])
44
- else:
45
- st.warning('Please enter a number')
46
 
 
6
 
7
  user_input = st.number_input('Enter a number')
8
 
9
+ # def double_number(number):
10
+ # url = 'http://localhost:8000/double_number'
11
+ # data = {"number": number}
12
+ # response = requests.post(url, json=data)
13
+ # return response.json()
14
 
15
  def kickoff(inputs={}):
16
  return inputs
17
+
18
  til_content = st.text_area('Enter what you learnt today:',
19
  "* Quantization is the process of reducing the size of LLM models by reducing the underlying weights.\n"
20
  "* The weights are reduced by scaling down the datatypes from a datatype that takes larger space to a data type that takes a smaller space, this is also known as downcasting.\n"
 
23
  "* I learnt how to use Go Routines to handle concurrency in React.\n",
24
  key='til_content', help='Enter what you learnt today')
25
 
26
+ if st.button("Get Feedback"):
27
  with st.status(
28
  "🤖 **Analysing TIL...**", state="running", expanded=True
29
  ) as status:
 
38
  expanded=False,
39
  )
40
 
41
+ # if st.button('Double'):
42
+ # if user_input:
43
+ # result = double_number(user_input)
44
+ # st.write('Doubled Number:', result['doubled_number'])
45
+ # else:
46
+ # st.warning('Please enter a number')
47