Add a chat reset
This commit is contained in:
		
							parent
							
								
									a38d46aa30
								
							
						
					
					
						commit
						c7c903ec61
					
				| @ -80,5 +80,10 @@ def prompt(): | ||||
|         image = screenshot | ||||
|     ) | ||||
| 
 | ||||
| @app.route('/reset') | ||||
| def reset(): | ||||
|     chatbot.message_history = [] | ||||
|     return "OK" | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     app.run(debug=True, host='0.0.0.0', port=5000) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user