Spaces:
Sleeping
Sleeping
JohnAlexander23
commited on
Commit
•
0880620
1
Parent(s):
ffb99d3
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from dotenv import load_dotenv
|
|
7 |
load_dotenv()
|
8 |
|
9 |
# Retrieve Groq API key from environment variables
|
10 |
-
|
11 |
|
12 |
# Define function to fetch response
|
13 |
def fetch_response(user_input):
|
@@ -23,7 +23,7 @@ def fetch_response(user_input):
|
|
23 |
return chat_completion.choices[0].message.content
|
24 |
|
25 |
# Streamlit app
|
26 |
-
st.title("Fastest AI Chatbot By DL
|
27 |
st.write("Ask a question and get a response.")
|
28 |
|
29 |
# Text input for user's question
|
|
|
7 |
load_dotenv()
|
8 |
|
9 |
# Retrieve Groq API key from environment variables
|
10 |
+
os.getenv("GROQ_API_KEY")
|
11 |
|
12 |
# Define function to fetch response
|
13 |
def fetch_response(user_input):
|
|
|
23 |
return chat_completion.choices[0].message.content
|
24 |
|
25 |
# Streamlit app
|
26 |
+
st.title("Fastest AI Chatbot By DL")
|
27 |
st.write("Ask a question and get a response.")
|
28 |
|
29 |
# Text input for user's question
|