Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ model_id = "meta-llama/llama-2-13b-chat" # Directly specifying the LLAMA2 model
|
|
12 |
|
13 |
# Set credentials to use the model
|
14 |
my_credentials = {
|
15 |
-
"url": "https://us-south.ml.cloud.ibm.com"
|
|
|
16 |
}
|
17 |
|
18 |
# Generation parameters
|
@@ -21,8 +22,8 @@ gen_parms = {
|
|
21 |
"temperature": 0.7 # Adjust for creativity
|
22 |
}
|
23 |
|
24 |
-
# Initialize the model
|
25 |
-
model = Model(model_id,
|
26 |
|
27 |
# Function to generate customized career advice
|
28 |
def generate_career_advice(field, position_name, current_qualifications, likes, skills):
|
|
|
12 |
|
13 |
# Set credentials to use the model
|
14 |
my_credentials = {
|
15 |
+
"url": "https://us-south.ml.cloud.ibm.com",
|
16 |
+
"apikey": watsonx_API
|
17 |
}
|
18 |
|
19 |
# Generation parameters
|
|
|
22 |
"temperature": 0.7 # Adjust for creativity
|
23 |
}
|
24 |
|
25 |
+
# Initialize the model with credentials
|
26 |
+
model = Model(model_id=model_id, credentials=my_credentials, gen_parms=gen_parms, project_id=project_id)
|
27 |
|
28 |
# Function to generate customized career advice
|
29 |
def generate_career_advice(field, position_name, current_qualifications, likes, skills):
|