dineth554 commited on
Commit
9517e14
·
verified ·
1 Parent(s): 8a09d9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
 
3
  # Install necessary libraries using os.system
4
- os.system("pip install streamlit llama-cpp-agent huggingface_hub trafilatura")
5
 
6
  try:
7
  from llama_cpp import Llama
@@ -186,3 +186,6 @@ if st.button("Send"):
186
  # Display chat history
187
  for user_msg, bot_msg in st.session_state.history:
188
  st.text_area("Chat", value=f"You: {user_msg}\nBot: {bot_msg}", height=300)
 
 
 
 
1
  import os
2
 
3
  # Install necessary libraries using os.system
4
+ os.system("pip install streamlit llama-cpp-agent huggingface_hub trafilatura beautifulsoup4 requests")
5
 
6
  try:
7
  from llama_cpp import Llama
 
186
  # Display chat history
187
  for user_msg, bot_msg in st.session_state.history:
188
  st.text_area("Chat", value=f"You: {user_msg}\nBot: {bot_msg}", height=300)
189
+
190
+ if __name__ == "__main__":
191
+ st.run()