willn9 commited on
Commit
afad9aa
·
verified ·
1 Parent(s): 7e82822

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,8 +5,8 @@ import gradio as gr
5
 
6
 
7
  # Set up the API key and project ID for IBM Watson
8
- watsonx_API = "Q7fLgZsmjZJ9L8BhLE_asx91M1C3dlPeYgmSm2wBleyk" # below is the instruction how to get them
9
- project_id= "a5a13c69-59c8-4856-bea6-4fa1f85e2cbb" # like "0blahblah-000-9999-blah-99bla0hblah0"
10
 
11
  # Generation parameters
12
  gen_parms = {
@@ -63,7 +63,7 @@ career_advice_app = gr.Interface(
63
  gr.Textbox(label="Skills (e.g., I am good at math, science, languages, computers, research, hand tools, etc.)", placeholder="Skills ...", lines=10),
64
  ],
65
  outputs=gr.Textbox(label="Customized Career Advice"),
66
- title="Customized Career Advice",
67
  description="Generate a customized career advice using field, position name, likes and skills"
68
  )
69
 
 
5
 
6
 
7
  # Set up the API key and project ID for IBM Watson
8
+ watsonx_API = os.getenv("WATSONX_API")
9
+ project_id = os.getenv("PROJECT_ID"
10
 
11
  # Generation parameters
12
  gen_parms = {
 
63
  gr.Textbox(label="Skills (e.g., I am good at math, science, languages, computers, research, hand tools, etc.)", placeholder="Skills ...", lines=10),
64
  ],
65
  outputs=gr.Textbox(label="Customized Career Advice"),
66
+ title="Customized Career Advice - by Wael Nawara",
67
  description="Generate a customized career advice using field, position name, likes and skills"
68
  )
69