samim2024 commited on
Commit
4b5a779
·
verified ·
1 Parent(s): 3a5c829

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -32,10 +32,13 @@ st.header("Samim LangChain Demo")
32
 
33
  #Gets the user input
34
  def get_text():
35
- input_text = st.text_input("You: ", key="input")
 
 
 
 
36
  return input_text
37
 
38
-
39
  user_input=get_text()
40
  response = load_answer(user_input)
41
 
 
32
 
33
  #Gets the user input
34
  def get_text():
35
+ input_text = st.text_input("You:", "currency of india")
36
+ if input_text.isalpha():
37
+ st.write(text, 'string', )
38
+ else:
39
+ st.write('Please type in a string ')
40
  return input_text
41
 
 
42
  user_input=get_text()
43
  response = load_answer(user_input)
44