playmak3r commited on
Commit
a3ed2ae
·
1 Parent(s): 8e1f150
Files changed (2) hide show
  1. server/app.py +4 -0
  2. server/requirements.txt +3 -1
server/app.py CHANGED
@@ -8,6 +8,10 @@ app = Flask(__name__)
8
  def index():
9
  return send_from_directory('dist', "index.html")
10
 
 
 
 
 
11
  @app.route('/assets/<path:filename>')
12
  def download_file(filename):
13
  return send_from_directory('dist/assets', filename)
 
8
  def index():
9
  return send_from_directory('dist', "index.html")
10
 
11
+ @app.route('/<path:filename>')
12
+ def download_file(filename):
13
+ return send_from_directory('.', filename)
14
+
15
  @app.route('/assets/<path:filename>')
16
  def download_file(filename):
17
  return send_from_directory('dist/assets', filename)
server/requirements.txt CHANGED
@@ -1,2 +1,4 @@
1
  flask
2
- waitress
 
 
 
1
  flask
2
+ waitress
3
+ CTranslate2
4
+ #fairseq