IliaLarchenko commited on
Commit
ec74f30
1 Parent(s): 6ba2996

Added basic instructions

Browse files
Files changed (1) hide show
  1. app.py +29 -3
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
 
3
  from llm import end_interview, get_problem, read_last_message, send_request, speech_to_text, test_connection, text_to_speech
@@ -40,13 +42,37 @@ def hide_solution():
40
 
41
 
42
  with gr.Blocks() as demo:
43
- gr.Markdown("Your coding interview practice AI assistant!")
44
  with gr.Tab("Instruction") as instruction_tab:
45
  with gr.Row():
46
  with gr.Column(scale=10):
47
- gr.Markdown("### Instructions")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
- pass
50
  with gr.Column(scale=1):
51
  try:
52
  audio_test = text_to_speech("Handshake")
 
1
+ import os
2
+
3
  import gradio as gr
4
 
5
  from llm import end_interview, get_problem, read_last_message, send_request, speech_to_text, test_connection, text_to_speech
 
42
 
43
 
44
  with gr.Blocks() as demo:
 
45
  with gr.Tab("Instruction") as instruction_tab:
46
  with gr.Row():
47
  with gr.Column(scale=10):
48
+ gr.Markdown("# Welcome to the AI Tech Interviewer Training!")
49
+ gr.Markdown(
50
+ """
51
+ This project leverages the latest AI models to simulate a realistic tech interview experience,
52
+ allowing you to practice your coding interview skills in an environment that closely mimics the real thing.
53
+ While it's not designed to replace a human interviewer or the essential steps of interview preparation, such as studying algorithms and practicing coding,
54
+ it serves as a valuable addition to your preparation arsenal.
55
+ """
56
+ )
57
+
58
+ if os.getenv("IS_DEMO"):
59
+ gr.Markdown(
60
+ """
61
+ ### Demo Version Notice
62
+ **This is a demo version running on limited resources, which may respond slower than usual.**
63
+ It's primarily for demonstration purposes.
64
+ For optimal performance, we recommend running this application on your local machine using your own OpenAI API_KEY or local models.
65
+ See the instructions below on how to set up and run this application locally for the best experience.
66
+ I also recommend to read this introduction page first.
67
+ If you proceed to the interview interface right now, just click on the 'Coding' tab.
68
+ """
69
+ )
70
+
71
+ gr.Markdown("### Introduction")
72
+ gr.Markdown("### Setting Up Locally")
73
+ gr.Markdown("### Interview Interface Overview")
74
+ gr.Markdown("### Models Configuration")
75
 
 
76
  with gr.Column(scale=1):
77
  try:
78
  audio_test = text_to_speech("Handshake")