Petermoyano commited on
Commit
678b515
·
1 Parent(s): 2554acc

Add UI and remove debug.py

Browse files
Files changed (3) hide show
  1. README.md +2 -0
  2. app.py +3 -2
  3. debug.py +0 -7
README.md CHANGED
@@ -9,4 +9,6 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
 
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  pinned: false
10
  ---
11
 
12
+ This app is available at huggingface spaces [here.](https://huggingface.co/spaces/Petermoyano/langchain-docs)
13
+
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -3,8 +3,9 @@ import streamlit as st
3
  from streamlit_chat import message
4
  from typing import Set
5
 
6
- st.header("Peter's LangChain chatbot")
7
- prompt = st.text_input("Ask me anything about LangChain", placeholder="...")
 
8
 
9
  # Initialize session state variables if they don't exist yet.
10
  if "user_prompt_history" not in st.session_state:
 
3
  from streamlit_chat import message
4
  from typing import Set
5
 
6
+ st.header("Peter's LangChain documentation chatbot")
7
+ st.subheader("GPT-3.5-turbo + the entire LangChain documentation")
8
+ prompt = st.text_input("You can also ask for code.", placeholder="")
9
 
10
  # Initialize session state variables if they don't exist yet.
11
  if "user_prompt_history" not in st.session_state:
debug.py DELETED
@@ -1,7 +0,0 @@
1
- import main # replace 'your_streamlit_app' with the name of your main Streamlit script
2
- import streamlit as st
3
-
4
- # This command ensures Streamlit doesn't rerun the entire script on save
5
- st.set_run_on_save(False)
6
-
7
- # Now import your Streamlit app script