Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -150,15 +150,33 @@ def reply(message: str, history: list[str]) -> str:
|
|
150 |
partial_message += new_token
|
151 |
yield partial_message
|
152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
# Create and run the gradio interface
|
155 |
gradio.ChatInterface(
|
156 |
reply,
|
|
|
157 |
chatbot=gradio.Chatbot(
|
158 |
show_label=False,
|
159 |
show_share_button=False,
|
160 |
show_copy_button=False,
|
161 |
-
value=[[None, GREETING]],
|
162 |
height="60vh",
|
163 |
bubble_full_width=False,
|
164 |
),
|
|
|
150 |
partial_message += new_token
|
151 |
yield partial_message
|
152 |
|
153 |
+
# Example queries
|
154 |
+
EXAMPLE_QUERIES = [
|
155 |
+
"What is multi-material 3D printing?",
|
156 |
+
"How is additive manufacturing being applied in aerospace?",
|
157 |
+
"Tell me about innovations in metal 3D printing techniques.",
|
158 |
+
"What are some sustainable materials for 3D printing?",
|
159 |
+
"What are the biggest challenges with support structures in additive manufacturing?",
|
160 |
+
"How is 3D printing impacting the medical field?",
|
161 |
+
"What are some common applications of additive manufacturing in industry?",
|
162 |
+
"What are the benefits and limitations of using polymers in 3D printing?",
|
163 |
+
"Are there recent breakthroughs in enhancing precision for additive manufacturing?",
|
164 |
+
"Tell me about the environmental impacts of additive manufacturing.",
|
165 |
+
"What are the primary limitations of current 3D printing technologies?",
|
166 |
+
"What future trends are expected in the field of additive manufacturing?",
|
167 |
+
"How are researchers improving the speed of 3D printing processes?",
|
168 |
+
"What are the best practices for managing post-processing in additive manufacturing?",
|
169 |
+
]
|
170 |
|
171 |
# Create and run the gradio interface
|
172 |
gradio.ChatInterface(
|
173 |
reply,
|
174 |
+
examples=EXAMPLE_QUERIES
|
175 |
chatbot=gradio.Chatbot(
|
176 |
show_label=False,
|
177 |
show_share_button=False,
|
178 |
show_copy_button=False,
|
179 |
+
# value=[[None, GREETING]],
|
180 |
height="60vh",
|
181 |
bubble_full_width=False,
|
182 |
),
|