Jesus Sanchez commited on
Commit
21dfa43
·
1 Parent(s): 5c3a841
Files changed (2) hide show
  1. app.py +1 -1
  2. chat/chat.py +2 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def get_response(prompt: str, *kargs):
19
  if prompt_lower == 'line chart':
20
  on_render = st.line_chart
21
  response = np.random.randn(30, 30)
22
- elif prompt_lower == 'mark circle':
23
  on_render = st.write
24
  response = circle_chart()
25
 
 
19
  if prompt_lower == 'line chart':
20
  on_render = st.line_chart
21
  response = np.random.randn(30, 30)
22
+ elif prompt_lower == 'circle chart':
23
  on_render = st.write
24
  response = circle_chart()
25
 
chat/chat.py CHANGED
@@ -20,7 +20,8 @@ class Chat:
20
  callback to process the chat promt, it takes the promt for input
21
  and returns a tuple with the response and a render callback
22
  """
23
- promt = st.chat_input(placeholder="Ask Me Anything", key='chat_text_input')
 
24
 
25
  if promt:
26
  st.session_state[PROMPT_LABEL].append(promt)
 
20
  callback to process the chat promt, it takes the promt for input
21
  and returns a tuple with the response and a render callback
22
  """
23
+ # promt = st.chat_input(placeholder="Ask Me Anything", key='chat_text_input')
24
+ promt = st.text_input(label="Ask Me Anything", key='chat_text_input')
25
 
26
  if promt:
27
  st.session_state[PROMPT_LABEL].append(promt)