From e737e06aea3844577ae99528db39aca87b6000cb Mon Sep 17 00:00:00 2001 From: "Pulipaka, Srikar Kashyap" Date: Thu, 7 Sep 2023 13:20:58 -0400 Subject: [PATCH] minor fixes --- app.py | 6 ++++-- templates/index.html | 2 +- templates/questions.html | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 1865737..7587fb1 100644 --- a/app.py +++ b/app.py @@ -13,7 +13,9 @@ app = flask.Flask(__name__) -openai.api_key = "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" + +openai.api_key = os.environ.get( + 'OPENAI_API_KEY') command = "python -m spacy download en_core_web_sm" @@ -144,7 +146,7 @@ def questions(): answer = {"questions": []} return flask.render_template('index.html', error=True) end_gpt = time.time() - durations['ChatGPT API Request'] = round(end_gpt - start_gpt, 3) + durations['GPT4 API Request'] = round(end_gpt - start_gpt, 3) return flask.render_template('questions.html', questions=dict(answer)['questions'], durations=durations) diff --git a/templates/index.html b/templates/index.html index e9efd44..6b31002 100644 --- a/templates/index.html +++ b/templates/index.html @@ -81,7 +81,7 @@

Estimated time: 30 seconds to 1 minute

-

ResumeQuestionsGPT: Generate Interview Questions using ChatGPT

+

ResumeQuestionsGPT: Generate Interview Questions using GPT4

diff --git a/templates/questions.html b/templates/questions.html index 03cf9f2..1e6777f 100644 --- a/templates/questions.html +++ b/templates/questions.html @@ -47,7 +47,7 @@

ResumeQuestionsGPT: Probable Questions

-

Based on your resume, ChatGPT (GPT4) has generated the following probable questions that you may be asked in an interview.

+

Based on your resume, GPT4 has generated the following probable questions that you may be asked in an interview.