Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
-
import config
|
3 |
import openai
|
4 |
|
5 |
# Set your OpenAI API key
|
6 |
-
openai.api_key =
|
7 |
|
8 |
jd_summary_global = "" # Global variable to store the job description summary
|
9 |
|
@@ -65,4 +64,4 @@ cv_rate_interface = gr.Interface(
|
|
65 |
bespokecv = gr.TabbedInterface([jd_sum, cv_rate_interface],tab_names=['Job Description Summarizer','CV ATS Rating'])
|
66 |
|
67 |
if __name__ == "__main__":
|
68 |
-
bespokecv.launch(
|
|
|
1 |
import gradio as gr
|
|
|
2 |
import openai
|
3 |
|
4 |
# Set your OpenAI API key
|
5 |
+
openai.api_key = os.environ['OPENAI_API_KEY']
|
6 |
|
7 |
jd_summary_global = "" # Global variable to store the job description summary
|
8 |
|
|
|
64 |
bespokecv = gr.TabbedInterface([jd_sum, cv_rate_interface],tab_names=['Job Description Summarizer','CV ATS Rating'])
|
65 |
|
66 |
if __name__ == "__main__":
|
67 |
+
bespokecv.launch(auth=(os.environ['username'], os.environ['password']))
|