Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,19 +67,6 @@ 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 |
-
|
| 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(
|
|
|
|
| 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(
|