Dooratre commited on
Commit
a3e7d1f
·
verified ·
1 Parent(s): 229fc16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -87,13 +87,19 @@ def submit():
87
  update_conversation_history(response_message)
88
 
89
  return jsonify({'response':response})
 
90
 
91
  @app.route('/clear_history')
92
  def clear_history():
93
  global conversation_history
94
  conversation_history = []
95
  return 'Conversation history cleared'
 
 
 
 
96
 
 
97
  with open('i.txt', 'r') as file:
98
  data = file.read()
99
 
 
87
  update_conversation_history(response_message)
88
 
89
  return jsonify({'response':response})
90
+
91
 
92
  @app.route('/clear_history')
93
  def clear_history():
94
  global conversation_history
95
  conversation_history = []
96
  return 'Conversation history cleared'
97
+
98
+ @app.route('/assets/<path:path>')
99
+ def send_static(path):
100
+ return send_from_directory('assets', path)
101
 
102
+
103
  with open('i.txt', 'r') as file:
104
  data = file.read()
105