steveyin commited on
Commit
5b97abf
·
verified ·
1 Parent(s): 426a72f

Update webapp.py

Browse files
Files changed (1) hide show
  1. webapp.py +3 -3
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", 8080
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:8080/
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 8080 --reload
 
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