HAHAHA97 commited on
Commit
46f61ae
·
1 Parent(s): c924946

change gradio version

Browse files
Files changed (2) hide show
  1. app.py +7 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -2,6 +2,7 @@
2
  from __future__ import annotations
3
 
4
  import logging
 
5
  from typing import Optional
6
 
7
  import gradio as gr
@@ -486,4 +487,9 @@ with gr.Blocks(
486
  )
487
 
488
  if __name__ == "__main__":
489
- demo.queue(default_concurrency_limit=8).launch()
 
 
 
 
 
 
2
  from __future__ import annotations
3
 
4
  import logging
5
+ import os
6
  from typing import Optional
7
 
8
  import gradio as gr
 
487
  )
488
 
489
  if __name__ == "__main__":
490
+ server_port = int(os.getenv("PORT") or os.getenv("GRADIO_SERVER_PORT") or "7860")
491
+ logger.info("launching Gradio server on 0.0.0.0:%s", server_port)
492
+ demo.queue(default_concurrency_limit=8).launch(
493
+ server_name="0.0.0.0",
494
+ server_port=server_port,
495
+ )
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio[oauth]>=4.44,<6
2
  huggingface-hub>=0.24
3
  pandas
4
  python-dateutil
 
1
+ gradio[oauth]==5.43.1
2
  huggingface-hub>=0.24
3
  pandas
4
  python-dateutil