Update server.py
Browse files
server.py
CHANGED
|
@@ -119,7 +119,7 @@ parser.add_argument(
|
|
| 119 |
)
|
| 120 |
|
| 121 |
args = parser.parse_args()
|
| 122 |
-
|
| 123 |
port = 7860
|
| 124 |
host = "0.0.0.0"
|
| 125 |
summarization_model = (
|
|
@@ -418,7 +418,7 @@ def image_to_base64(image: Image, quality: int = 75) -> str:
|
|
| 418 |
|
| 419 |
|
| 420 |
ignore_auth = []
|
| 421 |
-
#
|
| 422 |
api_key = os.environ.get("password")
|
| 423 |
|
| 424 |
def is_authorize_ignored(request):
|
|
|
|
| 119 |
)
|
| 120 |
|
| 121 |
args = parser.parse_args()
|
| 122 |
+
# [HF, Huggingface] Set port to 7860, set host to remote.
|
| 123 |
port = 7860
|
| 124 |
host = "0.0.0.0"
|
| 125 |
summarization_model = (
|
|
|
|
| 418 |
|
| 419 |
|
| 420 |
ignore_auth = []
|
| 421 |
+
# [HF, Huggingface] Get password instead of text file.
|
| 422 |
api_key = os.environ.get("password")
|
| 423 |
|
| 424 |
def is_authorize_ignored(request):
|