paleDriver7 commited on
Commit
268f183
·
verified ·
1 Parent(s): c1f368a

Update backend/app.py

Browse files
Files changed (1) hide show
  1. backend/app.py +3 -1
backend/app.py CHANGED
@@ -21,7 +21,9 @@ llama3_model = LlaMa3()
21
  @app.route('/')
22
  def index():
23
  # 返回 HTML 页面
24
- return render_template('index_s.html')
 
 
25
 
26
  @app.route('/chat', methods=['POST'])
27
  def chat():
 
21
  @app.route('/')
22
  def index():
23
  # 返回 HTML 页面
24
+ #return render_template('index_s.html')
25
+ # 提供前端的 index.html 文件
26
+ return send_from_directory(app.static_folder, 'index.html')
27
 
28
  @app.route('/chat', methods=['POST'])
29
  def chat():