Spaces:
Runtime error
Runtime error
Update webapp.py
Browse files
webapp.py
CHANGED
@@ -1203,7 +1203,7 @@ class DemoCase:
|
|
1203 |
|
1204 |
# is_huggingface = False
|
1205 |
# define the host url and port for webgear server
|
1206 |
-
# HOST_WEBGEAR, PORT_WEBGEAR = "localhost",
|
1207 |
|
1208 |
# instantiate a demo case
|
1209 |
demo_case = DemoCase(YOLO_VERBOSE=False)
|
@@ -1270,7 +1270,7 @@ web.routes.append(Route(
|
|
1270 |
))
|
1271 |
|
1272 |
# if is_huggingface is False:
|
1273 |
-
# # run this app on Uvicorn server at address http://localhost:
|
1274 |
# uvicorn.run(
|
1275 |
# web(), host=HOST_WEBGEAR, port=PORT_WEBGEAR, log_level="info"
|
1276 |
# )
|
@@ -1278,4 +1278,4 @@ web.routes.append(Route(
|
|
1278 |
# web.shutdown()
|
1279 |
#
|
1280 |
# or launch it using cli --
|
1281 |
-
# uvicorn webapp:web --host "localhost" --port
|
|
|
1203 |
|
1204 |
# is_huggingface = False
|
1205 |
# define the host url and port for webgear server
|
1206 |
+
# HOST_WEBGEAR, PORT_WEBGEAR = "localhost", 7860
|
1207 |
|
1208 |
# instantiate a demo case
|
1209 |
demo_case = DemoCase(YOLO_VERBOSE=False)
|
|
|
1270 |
))
|
1271 |
|
1272 |
# if is_huggingface is False:
|
1273 |
+
# # run this app on Uvicorn server at address http://localhost:7860/
|
1274 |
# uvicorn.run(
|
1275 |
# web(), host=HOST_WEBGEAR, port=PORT_WEBGEAR, log_level="info"
|
1276 |
# )
|
|
|
1278 |
# web.shutdown()
|
1279 |
#
|
1280 |
# or launch it using cli --
|
1281 |
+
# uvicorn webapp:web --host "localhost" --port 7860 --reload
|