umyuu commited on
Commit
696e430
·
1 Parent(s): d40547a

Hugging FaceのSpace対応

Browse files

Gradioのポート番号が7860以外の設定時に、SpaceでStarting→Runningに処理が進まない不具合修正

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def main():
23
  from src.myapp import runApp
24
 
25
  parser = argparse.ArgumentParser(prog=PROGRAM_NAME, description="SaliencyMapDemo")
26
- parser.add_argument('--server_port', type=int, default=9999, help="Gradio server port")
27
  parser.add_argument('--max_file_size', type=int, default=20 * 1024 * 1024, help="Gradio max file size")
28
  parser.add_argument('--inbrowser', type=bool, default=True, help="Gradio inbrowser")
29
  parser.add_argument('--share', type=bool, default=False, help="Gradio share")
 
23
  from src.myapp import runApp
24
 
25
  parser = argparse.ArgumentParser(prog=PROGRAM_NAME, description="SaliencyMapDemo")
26
+ parser.add_argument('--server_port', type=int, default=7860, help="Gradio server port")
27
  parser.add_argument('--max_file_size', type=int, default=20 * 1024 * 1024, help="Gradio max file size")
28
  parser.add_argument('--inbrowser', type=bool, default=True, help="Gradio inbrowser")
29
  parser.add_argument('--share', type=bool, default=False, help="Gradio share")