Spaces:
Sleeping
Sleeping
Commit
·
678b515
1
Parent(s):
2554acc
Add UI and remove debug.py
Browse files
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 |
-
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|