Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
| 9 |
-
project_id= "
|
| 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 |
|