Spaces:
Sleeping
Sleeping
Commit
·
f578cc7
1
Parent(s):
a7cc90e
Introductory message
Browse files
app.py
CHANGED
@@ -45,6 +45,8 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
45 |
"""
|
46 |
demo = gr.ChatInterface(
|
47 |
respond,
|
|
|
|
|
48 |
additional_inputs=[
|
49 |
gr.Textbox(value="You are an AI Calibration Expert specialized in pharmaceutical manufacturing processes. Your role is to provide precise technical guidance on calibration procedures, quality control, and maintaining optimal performance of AI-driven pharmaceutical manufacturing systems.", label="System message"),
|
50 |
gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="Max new tokens"),
|
@@ -57,15 +59,8 @@ demo = gr.ChatInterface(
|
|
57 |
label="Top-p (nucleus sampling)",
|
58 |
),
|
59 |
],
|
60 |
-
chatbot=gr.Chatbot(
|
61 |
-
value=[{
|
62 |
-
"role": "assistant",
|
63 |
-
"content": "Hello! I am your AI Calibration Expert, specialized in pharmaceutical manufacturing processes. I'm here to help you with technical guidance on calibration procedures, quality control, and system optimization. How can I assist you today?"
|
64 |
-
}],
|
65 |
-
type="messages"
|
66 |
-
),
|
67 |
)
|
68 |
|
69 |
|
70 |
if __name__ == "__main__":
|
71 |
-
demo.launch(
|
|
|
45 |
"""
|
46 |
demo = gr.ChatInterface(
|
47 |
respond,
|
48 |
+
title="AI Calibration Expert",
|
49 |
+
description="Hello! I am your AI Calibration Expert, specialized in pharmaceutical manufacturing processes. I'm here to help you with technical guidance on calibration procedures, quality control, and system optimization. How can I assist you today?",
|
50 |
additional_inputs=[
|
51 |
gr.Textbox(value="You are an AI Calibration Expert specialized in pharmaceutical manufacturing processes. Your role is to provide precise technical guidance on calibration procedures, quality control, and maintaining optimal performance of AI-driven pharmaceutical manufacturing systems.", label="System message"),
|
52 |
gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="Max new tokens"),
|
|
|
59 |
label="Top-p (nucleus sampling)",
|
60 |
),
|
61 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
)
|
63 |
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
+
demo.launch(server_name="0.0.0.0")
|