Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,8 @@ else:
|
|
| 17 |
# Initialize the Groq client
|
| 18 |
client = Groq(api_key=api_key)
|
| 19 |
|
|
|
|
|
|
|
| 20 |
def generate_roadmap(domain, level, duration):
|
| 21 |
# Ensure the client is initialized with an API key before trying to make a call
|
| 22 |
if not api_key:
|
|
|
|
| 17 |
# Initialize the Groq client
|
| 18 |
client = Groq(api_key=api_key)
|
| 19 |
|
| 20 |
+
@spaces.GPU
|
| 21 |
+
|
| 22 |
def generate_roadmap(domain, level, duration):
|
| 23 |
# Ensure the client is initialized with an API key before trying to make a call
|
| 24 |
if not api_key:
|