fuxialexander commited on
Commit
822767d
1 Parent(s): 62adfba

fix -h -> -n

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app/main.py +1 -1
Dockerfile CHANGED
@@ -53,8 +53,8 @@ RUN micromamba clean --all --yes
53
  WORKDIR /app
54
 
55
  # Make port 80 available to the world outside this container
56
- EXPOSE 7681
57
  # Set the working directory where your app resides
58
 
59
  # Command to run the Gradio app automatically
60
- CMD ["python", "app/main.py", "-p", "7681", "-s", "-u", "s3://2023-get-xf2217/get_demo_test_data", "-d", "/data"]
 
53
  WORKDIR /app
54
 
55
  # Make port 80 available to the world outside this container
56
+ EXPOSE 7860
57
  # Set the working directory where your app resides
58
 
59
  # Command to run the Gradio app automatically
60
+ CMD ["python", "app/main.py", "-p", "7860", "-s", "-u", "s3://2023-get-xf2217/get_demo_test_data", "-d", "/data"]
app/main.py CHANGED
@@ -29,7 +29,7 @@ args.add_argument("-p", "--port", type=int, default=7860, help="Port number")
29
  args.add_argument("-s", "--share", action="store_true", help="Share on network")
30
  args.add_argument("-u", "--s3_uri", type=str, default=None, help="Path to demo S3 bucket")
31
  args.add_argument("-d", "--data", type=str, default=None, help="Data directory")
32
- args.add_argument("-h", "--host", type=str, default="127.0.0.1")
33
  args = args.parse_args()
34
 
35
  GET_CONFIG = load_config(
 
29
  args.add_argument("-s", "--share", action="store_true", help="Share on network")
30
  args.add_argument("-u", "--s3_uri", type=str, default=None, help="Path to demo S3 bucket")
31
  args.add_argument("-d", "--data", type=str, default=None, help="Data directory")
32
+ args.add_argument("-n", "--host", type=str, default="127.0.0.1")
33
  args = args.parse_args()
34
 
35
  GET_CONFIG = load_config(