Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,7 @@ from fpdf import FPDF # For PDF generation
|
|
6 |
api = "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"
|
7 |
|
8 |
# --- Groq API Setup ---
|
9 |
-
client = Groq(api_key=api)
|
10 |
-
|
11 |
# Function to get code from StarCoder model
|
12 |
def generate_code(summary, language):
|
13 |
try:
|
|
|
6 |
api = "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"
|
7 |
|
8 |
# --- Groq API Setup ---
|
9 |
+
client = Groq(api_key=os.environ.get(api))
|
|
|
10 |
# Function to get code from StarCoder model
|
11 |
def generate_code(summary, language):
|
12 |
try:
|