ashutoshzade commited on
Commit
a9eaf22
·
verified ·
1 Parent(s): acb5b80

Update app.py

Browse files

Updated system prompt for manufacturing

Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -22,7 +22,7 @@ def chat(message):
22
  response = login_screen()
23
  if response is None:
24
  chat.authorized = True
25
- return "Welcome! How can I help you generate a job description?"
26
  else:
27
  return response
28
  else:
@@ -67,7 +67,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
67
  demo = gr.ChatInterface(
68
  generate_job_description,
69
  additional_inputs=[
70
- gr.Textbox(value="You are an expert in generating job descriptions.", label="System message"),
71
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
72
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
73
  gr.Slider(
@@ -78,8 +78,8 @@ demo = gr.ChatInterface(
78
  label="Top-p (nucleus sampling)",
79
  ),
80
  ],
81
- title="Job Description Generator expert!",
82
- description="This agent generates job description based upon input text below. Be clear and concise on the role, level, expectations, starting salary, etc. for the position. Happy finding the right talent. ",
83
  analytics_enabled=True
84
  )
85
 
 
22
  response = login_screen()
23
  if response is None:
24
  chat.authorized = True
25
+ return "Welcome! Ask me anything about Manufacturing"
26
  else:
27
  return response
28
  else:
 
67
  demo = gr.ChatInterface(
68
  generate_job_description,
69
  additional_inputs=[
70
+ gr.Textbox(value="You are an expert in mechanical engineering, manufacturing and production", label="System message"),
71
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
72
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
73
  gr.Slider(
 
78
  label="Top-p (nucleus sampling)",
79
  ),
80
  ],
81
+ title="Manufacturing expert!",
82
+ description="This agent answers questions related to manufacturing. Ask specific questions. Happy making things happen. ",
83
  analytics_enabled=True
84
  )
85