ccm commited on
Commit
ebc5453
·
verified ·
1 Parent(s): 648f18a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +14 -1
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(predict).launch(debug=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)