Azmathussainthebo commited on
Commit
17094f1
·
verified ·
1 Parent(s): 9b4b4ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,7 +1,5 @@
1
  import streamlit as st
2
  import requests
3
- streamlit run educational_chatbot.py
4
-
5
  # Set up the Groq API endpoint and your API key
6
  GROQ_API_URL = "https://api.groq.com/v1/chat/completions"
7
  GROQ_API_KEY = "your_groq_api_key_here" # Replace with your actual Groq API key
@@ -44,4 +42,5 @@ if prompt := st.chat_input("What is your question?"):
44
  with st.chat_message("assistant"):
45
  st.markdown(chatbot_response)
46
  else:
47
- st.error("Failed to get response from Groq API")
 
 
1
  import streamlit as st
2
  import requests
 
 
3
  # Set up the Groq API endpoint and your API key
4
  GROQ_API_URL = "https://api.groq.com/v1/chat/completions"
5
  GROQ_API_KEY = "your_groq_api_key_here" # Replace with your actual Groq API key
 
42
  with st.chat_message("assistant"):
43
  st.markdown(chatbot_response)
44
  else:
45
+ st.error("Failed to get response from Groq API")
46
+ streamlit run educational_chatbot.py