IliaLarchenko commited on
Commit
891f3b9
1 Parent(s): a82cf01

Added TODOs

Browse files
Files changed (3) hide show
  1. app.py +6 -1
  2. llm.py +1 -0
  3. options.py +2 -0
app.py CHANGED
@@ -5,6 +5,9 @@ from options import languages_list, models, topics_list
5
 
6
  with gr.Blocks() as demo:
7
  gr.Markdown("Your coding interview practice AI assistant!")
 
 
 
8
  with gr.Tab("Coding"):
9
  chat_history = gr.State([])
10
  previous_code = gr.State("")
@@ -31,8 +34,9 @@ with gr.Blocks() as demo:
31
  start_btn = gr.Button("Start")
32
 
33
  # TODO: select LLM model
34
- with gr.Accordion("Solution", open=True) as solution_acc:
35
  description = gr.Markdown()
 
36
  with gr.Row() as content:
37
  with gr.Column(scale=2):
38
  language_select = gr.Dropdown(
@@ -40,6 +44,7 @@ with gr.Blocks() as demo:
40
  )
41
  code = gr.Code(label="Solution", language=language_select.value, lines=20)
42
  message = gr.Textbox(label="Message", lines=1)
 
43
  with gr.Column(scale=1):
44
  chat = gr.Chatbot(label="Chat history")
45
  end_btn = gr.Button("Finish the interview")
 
5
 
6
  with gr.Blocks() as demo:
7
  gr.Markdown("Your coding interview practice AI assistant!")
8
+ # TODO: add instructions tab
9
+ # TODO: add other types of interviews (e.g. system design, ML design, behavioral, etc.)
10
+
11
  with gr.Tab("Coding"):
12
  chat_history = gr.State([])
13
  previous_code = gr.State("")
 
34
  start_btn = gr.Button("Start")
35
 
36
  # TODO: select LLM model
37
+ with gr.Accordion("Problem statement", open=True) as problem_acc:
38
  description = gr.Markdown()
39
+ with gr.Accordion("Solution", open=True) as solution_acc:
40
  with gr.Row() as content:
41
  with gr.Column(scale=2):
42
  language_select = gr.Dropdown(
 
44
  )
45
  code = gr.Code(label="Solution", language=language_select.value, lines=20)
46
  message = gr.Textbox(label="Message", lines=1)
47
+ # TODO: add voice input and output
48
  with gr.Column(scale=1):
49
  chat = gr.Chatbot(label="Chat history")
50
  end_btn = gr.Button("Finish the interview")
llm.py CHANGED
@@ -6,6 +6,7 @@ from openai import OpenAI
6
  from prompts import coding_interviewer_prompt, grading_feedback_prompt
7
 
8
  load_dotenv()
 
9
  client = OpenAI()
10
 
11
 
 
6
  from prompts import coding_interviewer_prompt, grading_feedback_prompt
7
 
8
  load_dotenv()
9
+ # TODO: don't use my key
10
  client = OpenAI()
11
 
12
 
options.py CHANGED
@@ -52,3 +52,5 @@ topics_list = [
52
  "Computational Geometry",
53
  ]
54
  models = ["gpt-3.5-turbo"]
 
 
 
52
  "Computational Geometry",
53
  ]
54
  models = ["gpt-3.5-turbo"]
55
+ # TODO: add more OAI models
56
+ # TODO: add more OS models