Spaces:
Running
Running
robertselvam
commited on
Commit
•
0026b44
1
Parent(s):
1cda033
Update app.py
Browse files
app.py
CHANGED
@@ -100,29 +100,34 @@ class ScreeningAssistant:
|
|
100 |
|
101 |
def gradio_interface(self) -> None:
|
102 |
"""Create a Gradio interface for the chatbot."""
|
103 |
-
with gr.Blocks(css = "style.css" ,theme="
|
104 |
|
105 |
-
gr.HTML("""
|
106 |
-
<center
|
107 |
-
<
|
108 |
-
|
109 |
-
|
|
|
|
|
110 |
|
111 |
with gr.Row():
|
112 |
-
with gr.Column(scale=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
msg = gr.Textbox(label="Question", show_label=False)
|
|
|
|
|
114 |
with gr.Row():
|
115 |
with gr.Column(scale=0.50):
|
116 |
audio_path = gr.Audio(sources=["microphone"], type="filepath")
|
117 |
with gr.Column(scale=0.50):
|
118 |
-
play_audio = gr.Audio( value=None, autoplay=True)
|
119 |
-
with gr.Row():
|
120 |
-
with gr.Column(scale=0.25):
|
121 |
-
resume = gr.File(label="Resume")
|
122 |
-
with gr.Column(scale=0.25):
|
123 |
-
jd = gr.File(label="Job Description")
|
124 |
-
with gr.Column(scale=0.50):
|
125 |
-
clear = gr.ClearButton([chatbot])
|
126 |
|
127 |
audio_path.stop_recording(self.get_response, [audio_path, chatbot, resume, jd], [msg, chatbot, play_audio])
|
128 |
|
|
|
100 |
|
101 |
def gradio_interface(self) -> None:
|
102 |
"""Create a Gradio interface for the chatbot."""
|
103 |
+
with gr.Blocks(css = "style.css" ,theme="shivi/calm_seafoam") as demo:
|
104 |
|
105 |
+
gr.HTML("""
|
106 |
+
<center class="darkblue" style="text-align:center;padding:30px;">
|
107 |
+
<center>
|
108 |
+
<img src="https://amosszeps.com/wp-content/uploads/2021/12/llyods-bank.png" alt="LLOYODS BANK">
|
109 |
+
<h1 style="color:#006E49; font-weight: bold;">Screening Assistant</h1>
|
110 |
+
</center>
|
111 |
+
""")
|
112 |
|
113 |
with gr.Row():
|
114 |
+
with gr.Column(scale=0.80):
|
115 |
+
chatbot = gr.Chatbot()
|
116 |
+
with gr.Column(scale=0.20):
|
117 |
+
with gr.Row():
|
118 |
+
resume = gr.File(label="Resume")
|
119 |
+
with gr.Row():
|
120 |
+
jd = gr.File(label="Job Description")
|
121 |
+
with gr.Row():
|
122 |
+
with gr.Column(scale=0.80):
|
123 |
msg = gr.Textbox(label="Question", show_label=False)
|
124 |
+
with gr.Column(scale=0.20):
|
125 |
+
|
126 |
with gr.Row():
|
127 |
with gr.Column(scale=0.50):
|
128 |
audio_path = gr.Audio(sources=["microphone"], type="filepath")
|
129 |
with gr.Column(scale=0.50):
|
130 |
+
play_audio = gr.Audio( value=None, autoplay=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
audio_path.stop_recording(self.get_response, [audio_path, chatbot, resume, jd], [msg, chatbot, play_audio])
|
133 |
|