Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikarKashyap committed Sep 7, 2023
1 parent d93a8a3 commit e737e06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h3>Estimated time: 30 seconds to 1 minute</h3>
<div class="col-md-1">
</div>
<div class="col-md-10" id="content">
<h1>ResumeQuestionsGPT: Generate Interview Questions using ChatGPT</h1>
<h1>ResumeQuestionsGPT: Generate Interview Questions using GPT4</h1>
</div>
<div class="col-md-1">
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/questions.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<div class="container">
<div class="jumbotron">
<h1>ResumeQuestionsGPT: Probable Questions</h1>
<p>Based on your resume, ChatGPT (GPT4) has generated the following probable questions that you may be asked in an interview.</p>
<p>Based on your resume, GPT4 has generated the following probable questions that you may be asked in an interview.</p>
</div>
<div class="row">
<div class="col-sm-12">
Expand Down

0 comments on commit e737e06

Please sign in to comment.