Spaces:
Sleeping
Sleeping
Update app.py
Browse filesUpdated system prompt for manufacturing
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!
|
| 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
|
| 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="
|
| 82 |
-
description="This agent
|
| 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 |
|