Update app.py
Browse files
app.py
CHANGED
|
@@ -17,9 +17,11 @@ st.write("I am your hotel booking assistant for today.")
|
|
| 17 |
# primaryColor="#6b4bff"
|
| 18 |
|
| 19 |
model = demo_chat.load_model()
|
|
|
|
| 20 |
|
| 21 |
-
chat_model = ChatHuggingFace(llm=model)
|
| 22 |
print(chat_model.model_id)
|
|
|
|
| 23 |
#Application
|
| 24 |
with st.container():
|
| 25 |
st.markdown('<div class="scrollable-div">', unsafe_allow_html=True)
|
|
|
|
| 17 |
# primaryColor="#6b4bff"
|
| 18 |
|
| 19 |
model = demo_chat.load_model()
|
| 20 |
+
token = os.getenv('HUGGINGFACEHUB_API_TOKEN')
|
| 21 |
|
| 22 |
+
chat_model = ChatHuggingFace(llm=model, token=token)
|
| 23 |
print(chat_model.model_id)
|
| 24 |
+
|
| 25 |
#Application
|
| 26 |
with st.container():
|
| 27 |
st.markdown('<div class="scrollable-div">', unsafe_allow_html=True)
|