markytools commited on
Commit
005a493
·
1 Parent(s): e4b3526
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -56,6 +56,7 @@ if uploaded_file is not None:
56
  # dataframe = pd.read_csv(uploaded_file)
57
  # st.write(dataframe)
58
 
 
59
  if genre==radioButtonList[0]:
60
  enableChatBox = True
61
  elif genre==radioButtonList[1]:
@@ -69,7 +70,7 @@ elif genre==radioButtonList[4]:
69
 
70
  title = st.text_input(f'Ask me anything about this {pdfCSVURLText}', '', placeholder="Type your question here (e.g. what was the most sold item?)", disabled=not enableChatBox)
71
  chatWithPDFButton = "CLICK HERE TO START CHATTING"
72
- if st.button(chatWithPDFButton, type="primary", disabled=not enableChatBox):
73
  pass
74
  else:
75
  pass
 
56
  # dataframe = pd.read_csv(uploaded_file)
57
  # st.write(dataframe)
58
 
59
+ enableChatBox = False
60
  if genre==radioButtonList[0]:
61
  enableChatBox = True
62
  elif genre==radioButtonList[1]:
 
70
 
71
  title = st.text_input(f'Ask me anything about this {pdfCSVURLText}', '', placeholder="Type your question here (e.g. what was the most sold item?)", disabled=not enableChatBox)
72
  chatWithPDFButton = "CLICK HERE TO START CHATTING"
73
+ if st.button(chatWithPDFButton, disabled=not enableChatBox):
74
  pass
75
  else:
76
  pass