willn9 commited on
Commit
30fc153
·
verified ·
1 Parent(s): 7a6f260

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -3,6 +3,7 @@ from ibm_watson_machine_learning.foundation_models import Model
3
  import gradio as gr
4
 
5
 
 
6
  # Model and project settings
7
  model_id = "meta-llama/llama-2-13b-chat" # Directly specifying the LLAMA2 model
8
 
@@ -16,12 +17,14 @@ gen_parms = {
16
  "max_new_tokens": 512, # Adjust as needed for the length of the cover letter
17
  "temperature": 0.7 # Adjust for creativity
18
  }
19
- project_id = "skills-network"
 
 
20
  space_id = None
21
  verify = False
22
 
23
  # Initialize the model
24
- model = Model(model_id, my_credentials, gen_parms, project_id, space_id, verify)
25
 
26
  # Function to generate customized career advice
27
  def generate_career_advice(field, position_name, current_qualifications, likes, skills):
 
3
  import gradio as gr
4
 
5
 
6
+
7
  # Model and project settings
8
  model_id = "meta-llama/llama-2-13b-chat" # Directly specifying the LLAMA2 model
9
 
 
17
  "max_new_tokens": 512, # Adjust as needed for the length of the cover letter
18
  "temperature": 0.7 # Adjust for creativity
19
  }
20
+
21
+ watsonx_API = os.getenv("watson_API")
22
+ project_id = os.getenv("project_id")
23
  space_id = None
24
  verify = False
25
 
26
  # Initialize the model
27
+ model = Model(model_id, my_credentials, gen_parms, watson_API, project_id, space_id, verify)
28
 
29
  # Function to generate customized career advice
30
  def generate_career_advice(field, position_name, current_qualifications, likes, skills):