Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import torch
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
# Command to install the package
|
| 5 |
+
command = [sys.executable, "-m", "pip", "install", "git+https://github.com/tatsy/torchmcubes.git"]
|
| 6 |
+
|
| 7 |
+
# Run the command
|
| 8 |
+
subprocess.check_call(command)
|
| 9 |
+
|
| 10 |
+
import torchmcubes
|
| 11 |
import gradio as gr
|
| 12 |
from huggingface_hub import InferenceClient
|
| 13 |
import torch
|