Spaces:
Runtime error
Runtime error
hide api key
Browse files- .gitignore +1 -0
- app.py +4 -1
.gitignore
CHANGED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
constants.py
|
app.py
CHANGED
|
@@ -6,11 +6,14 @@ import random
|
|
| 6 |
import planet_model as customModel
|
| 7 |
from typing import List, Dict
|
| 8 |
import constants
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
random_number = random.randint(3000, 10000)
|
| 12 |
|
| 13 |
-
model = GroqModel('llama-3.1-70b-versatile', api_key =
|
| 14 |
|
| 15 |
|
| 16 |
async def onClick(vacationType,familyType,duration,purpose,interests):
|
|
|
|
| 6 |
import planet_model as customModel
|
| 7 |
from typing import List, Dict
|
| 8 |
import constants
|
| 9 |
+
import os
|
| 10 |
+
|
| 11 |
+
api_key = os.getenv("API_KEY")
|
| 12 |
|
| 13 |
|
| 14 |
random_number = random.randint(3000, 10000)
|
| 15 |
|
| 16 |
+
model = GroqModel('llama-3.1-70b-versatile', api_key = api_key)
|
| 17 |
|
| 18 |
|
| 19 |
async def onClick(vacationType,familyType,duration,purpose,interests):
|