Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ import plotly.express as px
|
|
| 15 |
import re
|
| 16 |
import os
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
st.set_page_config(layout="wide")
|
| 21 |
# Custom CSS for Jupyter-like appearance
|
|
@@ -131,7 +131,7 @@ if 'df' not in st.session_state:
|
|
| 131 |
class GroqLLM(LLM):
|
| 132 |
model: str = "qwen-2.5-coder-32b"
|
| 133 |
temperature: float = 0.3
|
| 134 |
-
api_key: str =
|
| 135 |
|
| 136 |
@property
|
| 137 |
def _llm_type(self) -> str:
|
|
@@ -164,7 +164,7 @@ class GroqLLM(LLM):
|
|
| 164 |
class GroqTextLLM(LLM):
|
| 165 |
model: str = "deepseek-r1-distill-llama-70b"
|
| 166 |
temperature: float = 0.7
|
| 167 |
-
api_key: str =
|
| 168 |
|
| 169 |
@property
|
| 170 |
def _llm_type(self) -> str:
|
|
|
|
| 15 |
import re
|
| 16 |
import os
|
| 17 |
|
| 18 |
+
GROQ_API_KEY = os.getenv("GROQ_TOKENS")
|
| 19 |
|
| 20 |
st.set_page_config(layout="wide")
|
| 21 |
# Custom CSS for Jupyter-like appearance
|
|
|
|
| 131 |
class GroqLLM(LLM):
|
| 132 |
model: str = "qwen-2.5-coder-32b"
|
| 133 |
temperature: float = 0.3
|
| 134 |
+
api_key: str = GROQ_API_KEY
|
| 135 |
|
| 136 |
@property
|
| 137 |
def _llm_type(self) -> str:
|
|
|
|
| 164 |
class GroqTextLLM(LLM):
|
| 165 |
model: str = "deepseek-r1-distill-llama-70b"
|
| 166 |
temperature: float = 0.7
|
| 167 |
+
api_key: str = GROQ_API_KEY
|
| 168 |
|
| 169 |
@property
|
| 170 |
def _llm_type(self) -> str:
|