Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
!pip install --upgrade langchain langchain-core langchain-community langchain-groq gradio python-dotenv
|
| 2 |
-
!pip install langchain-groq
|
| 3 |
|
| 4 |
import os
|
| 5 |
import gradio as gr
|
|
@@ -26,7 +26,7 @@ except ImportError as e:
|
|
| 26 |
# =========================
|
| 27 |
#GROQ_API_KEY = "add your api key or load from google secerets"
|
| 28 |
|
| 29 |
-
GROQ_API_KEY =
|
| 30 |
|
| 31 |
|
| 32 |
# =========================
|
|
|
|
| 1 |
+
# !pip install --upgrade langchain langchain-core langchain-community langchain-groq gradio python-dotenv
|
| 2 |
+
# !pip install langchain-groq
|
| 3 |
|
| 4 |
import os
|
| 5 |
import gradio as gr
|
|
|
|
| 26 |
# =========================
|
| 27 |
#GROQ_API_KEY = "add your api key or load from google secerets"
|
| 28 |
|
| 29 |
+
GROQ_API_KEY = os.getenv('GROQ_API_KEY')
|
| 30 |
|
| 31 |
|
| 32 |
# =========================
|