Spaces:
Sleeping
Sleeping
Update pages/python.py
Browse files- pages/python.py +5 -0
pages/python.py
CHANGED
|
@@ -2,6 +2,11 @@ import streamlit as st
|
|
| 2 |
from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
| 3 |
from langchain_core.messages import HumanMessage, AIMessage, SystemMessage
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# --- Config ---
|
| 6 |
st.set_page_config(page_title="AI Mentor Chat", layout="centered")
|
| 7 |
st.title("🤖 AI Mentor Chat")
|
|
|
|
| 2 |
from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
| 3 |
from langchain_core.messages import HumanMessage, AIMessage, SystemMessage
|
| 4 |
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
hk = userdata.get('deepseek')
|
| 8 |
+
os.environ['HUGGINGFACEHUB_API_TOKEN'] = hf
|
| 9 |
+
os.environ['HF_TOKEN'] = hf
|
| 10 |
# --- Config ---
|
| 11 |
st.set_page_config(page_title="AI Mentor Chat", layout="centered")
|
| 12 |
st.title("🤖 AI Mentor Chat")
|