Spaces:
Sleeping
Sleeping
specify host and port
Browse files- 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
|
8 |
|
9 |
app = Flask(__name__)
|
10 |
|
@@ -39,7 +39,7 @@ def classify_arabic_dialect():
|
|
39 |
|
40 |
|
41 |
def main():
|
42 |
-
app.run(
|
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__":
|