Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
499884f
1
Parent(s):
11db63d
Add cache
Browse files
main.py
CHANGED
@@ -10,9 +10,6 @@ import random
|
|
10 |
from pathlib import Path
|
11 |
THIS_FOLDER = Path(__file__).parent.resolve()
|
12 |
|
13 |
-
import os
|
14 |
-
os.environ["TRANSFORMERS_CACHE"] = "/tmp/transformers_cache/"
|
15 |
-
|
16 |
app = Flask(__name__)
|
17 |
app.secret_key = 'pi-33pp-co-sk-33'
|
18 |
app.template_folder = os.path.abspath(f'{THIS_FOLDER}/web/templates')
|
@@ -76,4 +73,4 @@ def guess():
|
|
76 |
return jsonify(response)
|
77 |
|
78 |
if __name__ == '__main__':
|
79 |
-
app.run(port=
|
|
|
10 |
from pathlib import Path
|
11 |
THIS_FOLDER = Path(__file__).parent.resolve()
|
12 |
|
|
|
|
|
|
|
13 |
app = Flask(__name__)
|
14 |
app.secret_key = 'pi-33pp-co-sk-33'
|
15 |
app.template_folder = os.path.abspath(f'{THIS_FOLDER}/web/templates')
|
|
|
73 |
return jsonify(response)
|
74 |
|
75 |
if __name__ == '__main__':
|
76 |
+
app.run(port=7860,host='0.0.0.0',debug=True)
|