Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -117,15 +117,15 @@ def respond(
|
|
117 |
message,
|
118 |
history: list[tuple[str, str]],
|
119 |
system_message,
|
120 |
-
max_tokens,
|
121 |
-
temperature,
|
122 |
-
top_p,
|
123 |
):
|
124 |
# System message defining assistant behavior
|
125 |
system_message = {
|
126 |
"role": "system",
|
127 |
"content": f"Act and chat as SARATH who is a professional fresher seeking a job and your name is SARATH."
|
128 |
-
f"Here is about you
|
129 |
f'''Hire me or Contact me:
|
130 |
- LinkedIn:"https://www.linkedin.com/in/sarath-chandra-bandreddi-07393b1aa/"
|
131 |
- MyPortfolio:"https://21bq1a4210.github.io/MyPortfolio-/" '''
|
@@ -159,15 +159,32 @@ def respond(
|
|
159 |
|
160 |
|
161 |
# Gradio interface with additional sliders for control
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
|
172 |
if __name__ == "__main__":
|
173 |
demo.launch()
|
|
|
117 |
message,
|
118 |
history: list[tuple[str, str]],
|
119 |
system_message,
|
120 |
+
max_tokens=1024,
|
121 |
+
temperature=.5,
|
122 |
+
top_p=.95,
|
123 |
):
|
124 |
# System message defining assistant behavior
|
125 |
system_message = {
|
126 |
"role": "system",
|
127 |
"content": f"Act and chat as SARATH who is a professional fresher seeking a job and your name is SARATH."
|
128 |
+
f"Here is about you SARATH: data=```{data}```. You should answer questions based on this information only."
|
129 |
f'''Hire me or Contact me:
|
130 |
- LinkedIn:"https://www.linkedin.com/in/sarath-chandra-bandreddi-07393b1aa/"
|
131 |
- MyPortfolio:"https://21bq1a4210.github.io/MyPortfolio-/" '''
|
|
|
159 |
|
160 |
|
161 |
# Gradio interface with additional sliders for control
|
162 |
+
with gr.Blocks() as demo:
|
163 |
+
gr.Markdown('# Welcome to the DearHRiAmBussySpeakWithMy2.0 🤖💬!')
|
164 |
+
gr.Markdown(
|
165 |
+
'''
|
166 |
+
### DearHRSpeakWithMy2.0 is a smart, AI-powered chatbot designed to act as a virtual introduction tool for job candidates during HR interviews. The bot is equipped to present comprehensive details about the candidate's skills, projects, and experience in a personalized and professional manner.
|
167 |
+
### Inspired by a real-world experience where the interviewer overlooked key aspects of the candidate’s expertise in AI and Machine Learning (ML), this project aims to ensure that important, job-relevant information is effectively communicated. DearHRSpeakWithMy2.0 helps avoid situations where an interviewer might focus on areas that don't align with the candidate's strengths or goals.
|
168 |
+
'''
|
169 |
+
)
|
170 |
+
demo = gr.ChatInterface(
|
171 |
+
respond,
|
172 |
+
# additional_inputs=[
|
173 |
+
# gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
174 |
+
# gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
175 |
+
# gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
176 |
+
# gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
177 |
+
# ],
|
178 |
+
)
|
179 |
+
gr.Markdown(
|
180 |
+
'''
|
181 |
+
## Contact Me:
|
182 |
+
- [LinkedIn](https://www.linkedin.com/in/sarath-chandra-bandreddi-07393b1aa/)
|
183 |
+
- [MyPortfolio](https://21bq1a4210.github.io/MyPortfolio-/)
|
184 |
+
- Personal mail: <[email protected]>
|
185 |
+
- College mail: <[email protected]>
|
186 |
+
'''
|
187 |
+
)
|
188 |
|
189 |
if __name__ == "__main__":
|
190 |
demo.launch()
|