willn9 commited on
Commit
3f29208
·
verified ·
1 Parent(s): df7172c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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, watsonx_API, gen_parms, project_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):