Spaces:
Sleeping
Sleeping
- librarymed/app.py +0 -22
librarymed/app.py
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
import argparse
|
2 |
-
import logging
|
3 |
-
import os
|
4 |
-
from dotenv import load_dotenv
|
5 |
-
|
6 |
-
load_dotenv()
|
7 |
-
|
8 |
-
if __name__ == '__main__':
|
9 |
-
args_parse = argparse.ArgumentParser(description="LibraryMed")
|
10 |
-
args_parse.add_argument("--local", help="Run interface v0.1.0 by the fellows", action="store_true")
|
11 |
-
args = args_parse.parse_args()
|
12 |
-
port = os.getenv("PORT") or 80
|
13 |
-
|
14 |
-
if args.local:
|
15 |
-
from local.app_local import app
|
16 |
-
logging.info("Run LibraryMed interface v0.1.0 developed by the fellows")
|
17 |
-
app.run(debug=True, host="0.0.0.0", port=port)
|
18 |
-
|
19 |
-
else:
|
20 |
-
from librarymed.app_librarymed import app
|
21 |
-
logging.info("Run LibraryMed interface v0.2.0 developed by Kromin")
|
22 |
-
app.run(debug=True, host="0.0.0.0", port=port)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|