zaidmehdi commited on
Commit
7039ced
1 Parent(s): 1656836

specify host and port

Browse files
Files changed (1) hide show
  1. src/main.py +2 -2
src/main.py CHANGED
@@ -4,7 +4,7 @@ import pickle
4
  from flask import Flask, request, jsonify
5
  from transformers import AutoModel, AutoTokenizer
6
 
7
- from src.utils import extract_hidden_state
8
 
9
  app = Flask(__name__)
10
 
@@ -39,7 +39,7 @@ def classify_arabic_dialect():
39
 
40
 
41
  def main():
42
- app.run(debug=True)
43
 
44
 
45
  if __name__ == "__main__":
 
4
  from flask import Flask, request, jsonify
5
  from transformers import AutoModel, AutoTokenizer
6
 
7
+ from utils import extract_hidden_state
8
 
9
  app = Flask(__name__)
10
 
 
39
 
40
 
41
  def main():
42
+ app.run(host="0.0.0.0", port=5000)
43
 
44
 
45
  if __name__ == "__main__":