AvaLovelace commited on
Commit
f52e688
·
verified ·
1 Parent(s): f299f80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -67,6 +67,19 @@ def main():
67
  info='The brick structure in text format. Each line of the form "hxw (x,y,z)" represents a '
68
  '1-unit-tall rectangular brick with dimensions hxw placed at coordinates (x,y,z).')
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  # Define Gradio interface
71
  print("Making Gradio interface...")
72
  demo = gr.Interface(
 
67
  info='The brick structure in text format. Each line of the form "hxw (x,y,z)" represents a '
68
  '1-unit-tall rectangular brick with dimensions hxw placed at coordinates (x,y,z).')
69
 
70
+
71
+ import subprocess
72
+
73
+ try:
74
+ result = subprocess.run(['node', '--version'], capture_output=True, text=True, check=True)
75
+ print("Node.js version:", result.stdout.strip())
76
+ except FileNotFoundError:
77
+ print("Node.js is not installed or not found in the system's PATH.")
78
+ except subprocess.CalledProcessError as e:
79
+ print(f"Error checking Node.js version: {e}")
80
+ print(f"Stderr: {e.stderr.strip()}")
81
+
82
+
83
  # Define Gradio interface
84
  print("Making Gradio interface...")
85
  demo = gr.Interface(