Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,10 @@ import time
|
|
14 |
huggingfacehub_api_token = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
15 |
groq_api_key = os.getenv("GROQ_API_KEY")
|
16 |
|
|
|
|
|
|
|
|
|
17 |
# Check if the keys are retrieved correctly
|
18 |
if not huggingfacehub_api_token:
|
19 |
st.error("HUGGINGFACEHUB_API_TOKEN environment variable is not set")
|
|
|
14 |
huggingfacehub_api_token = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
15 |
groq_api_key = os.getenv("GROQ_API_KEY")
|
16 |
|
17 |
+
# Debugging: Print the API keys to ensure they are being retrieved (remove these prints in production)
|
18 |
+
st.write("Hugging Face Hub API Token:", huggingfacehub_api_token)
|
19 |
+
st.write("GROQ API Key:", groq_api_key)
|
20 |
+
|
21 |
# Check if the keys are retrieved correctly
|
22 |
if not huggingfacehub_api_token:
|
23 |
st.error("HUGGINGFACEHUB_API_TOKEN environment variable is not set")
|