Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -120,4 +120,17 @@ def predict(message: str, history: list[str]) -> str:
|
|
120 |
|
121 |
|
122 |
# Create and run the gradio interface
|
123 |
-
gradio.ChatInterface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
|
122 |
# Create and run the gradio interface
|
123 |
+
gradio.ChatInterface(
|
124 |
+
predict,
|
125 |
+
examples=[
|
126 |
+
"Tell me about new research at the intersection of additive manufacturing and machine learning",
|
127 |
+
"What is a physics-informed neural network and what can it be used for?",
|
128 |
+
"What can agent-based models do about climate change?"
|
129 |
+
],
|
130 |
+
chatbot = gradio.Chatbot(show_label=False),
|
131 |
+
retry_btn = None,
|
132 |
+
undo_btn = None,
|
133 |
+
clear_btn=None,
|
134 |
+
theme="monochrome",
|
135 |
+
# cache_examples=True,
|
136 |
+
).launch(debug=True)
|