Update server.py
Browse files
server.py
CHANGED
@@ -129,9 +129,9 @@ parser.add_argument(
|
|
129 |
)
|
130 |
|
131 |
args = parser.parse_args()
|
132 |
-
|
133 |
-
port =
|
134 |
-
host = "0.0.0.0"
|
135 |
summarization_model = (
|
136 |
args.summarization_model
|
137 |
if args.summarization_model
|
@@ -544,7 +544,7 @@ def image_to_base64(image: Image, quality: int = 75) -> str:
|
|
544 |
return img_str
|
545 |
|
546 |
ignore_auth = []
|
547 |
-
#
|
548 |
api_key = os.environ.get("password")
|
549 |
|
550 |
def is_authorize_ignored(request):
|
|
|
129 |
)
|
130 |
|
131 |
args = parser.parse_args()
|
132 |
+
# [HF, Huggingface] Set port to 7860, set host to remote.
|
133 |
+
port = 7860
|
134 |
+
host = "0.0.0.0"
|
135 |
summarization_model = (
|
136 |
args.summarization_model
|
137 |
if args.summarization_model
|
|
|
544 |
return img_str
|
545 |
|
546 |
ignore_auth = []
|
547 |
+
# [HF, Huggingface] Get password instead of text file.
|
548 |
api_key = os.environ.get("password")
|
549 |
|
550 |
def is_authorize_ignored(request):
|