joeyanuff commited on
Commit
96528a7
·
1 Parent(s): 16748c5
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -60,10 +60,12 @@ chain = load_chain()
60
  st.set_page_config(page_title="Impromptu GPT", page_icon=":robot:")
61
  st.header("Impromptu GPT")
62
  '''
63
- > A secondary UI testing LangChain's ```SelfQueryRetriever``` interface
 
64
  (currently Python-only), which uses an LLM to structure its vectorstore
65
  query: meaning that a conversational request for specific chapters and
66
  speakers filters on the relevant metadata.
 
67
  '''
68
 
69
  if "generated" not in st.session_state:
@@ -73,7 +75,7 @@ if "past" not in st.session_state:
73
  st.session_state["past"] = []
74
 
75
  def get_text():
76
- input_text = st.text_input("You: ", "What are the four types of hallucinations?", key="input")
77
  return input_text
78
 
79
  user_input = get_text()
 
60
  st.set_page_config(page_title="Impromptu GPT", page_icon=":robot:")
61
  st.header("Impromptu GPT")
62
  '''
63
+ ```
64
+ A secondary UI testing LangChain's ```SelfQueryRetriever``` interface
65
  (currently Python-only), which uses an LLM to structure its vectorstore
66
  query: meaning that a conversational request for specific chapters and
67
  speakers filters on the relevant metadata.
68
+ ```
69
  '''
70
 
71
  if "generated" not in st.session_state:
 
75
  st.session_state["past"] = []
76
 
77
  def get_text():
78
+ input_text = st.text_input("You: ", "What are some of the risks mentioned in chapter one?", key="input")
79
  return input_text
80
 
81
  user_input = get_text()