Simon Strandgaard commited on
Commit
2ea8a4a
·
1 Parent(s): 9dce94e

print_gradio_info() added

Browse files
app.py CHANGED
@@ -3,6 +3,8 @@ During development, to mimic the same behavior as on Hugging Face Spaces.
3
  PROMPT> IS_HUGGINGFACE_SPACES=true python app.py
4
  """
5
  if __name__ == "__main__":
 
 
6
  # from src.plan.app_text2plan import run_app_text2plan
7
  # run_app_text2plan()
8
  from src.huggingface_spaces.app_state2 import demo
 
3
  PROMPT> IS_HUGGINGFACE_SPACES=true python app.py
4
  """
5
  if __name__ == "__main__":
6
+ from src.huggingface_spaces.print_gradio_info import print_gradio_info
7
+ print_gradio_info()
8
  # from src.plan.app_text2plan import run_app_text2plan
9
  # run_app_text2plan()
10
  from src.huggingface_spaces.app_state2 import demo
src/huggingface_spaces/print_gradio_info.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ def print_gradio_info():
2
+ """What version of Gradio is this. Runs the "gradio environment" command."""
3
+ import subprocess
4
+ print(subprocess.check_output(["gradio", "environment"]).decode())