ncardian commited on
Commit
f030ad0
·
verified ·
1 Parent(s): d569e8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -15,6 +15,9 @@ from io import StringIO
15
  from typing import Optional, List
16
  import plotly.express as px
17
  import re
 
 
 
18
 
19
  st.set_page_config(layout="wide")
20
  # Custom CSS for Jupyter-like appearance
@@ -130,7 +133,7 @@ if 'df' not in st.session_state:
130
  class GroqLLM(LLM):
131
  model: str = "qwen-2.5-coder-32b"
132
  temperature: float = 0.3
133
- api_key: str = GROQ_TOKENS
134
 
135
  @property
136
  def _llm_type(self) -> str:
@@ -163,7 +166,7 @@ class GroqLLM(LLM):
163
  class GroqTextLLM(LLM):
164
  model: str = "deepseek-r1-distill-llama-70b"
165
  temperature: float = 0.7
166
- api_key: str = GROQ_TOKENS
167
 
168
  @property
169
  def _llm_type(self) -> str:
 
15
  from typing import Optional, List
16
  import plotly.express as px
17
  import re
18
+ import os
19
+
20
+ groq_api = os.getenv("API_KEY")
21
 
22
  st.set_page_config(layout="wide")
23
  # Custom CSS for Jupyter-like appearance
 
133
  class GroqLLM(LLM):
134
  model: str = "qwen-2.5-coder-32b"
135
  temperature: float = 0.3
136
+ api_key: str = groq_api
137
 
138
  @property
139
  def _llm_type(self) -> str:
 
166
  class GroqTextLLM(LLM):
167
  model: str = "deepseek-r1-distill-llama-70b"
168
  temperature: float = 0.7
169
+ api_key: str = groq_api
170
 
171
  @property
172
  def _llm_type(self) -> str: