Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
3 |
import shlex
|
4 |
-
|
5 |
|
6 |
def greet(name):
|
7 |
return "Hello " + name + "!!"
|
@@ -13,7 +13,7 @@ def kickoff_worker(inputs):
|
|
13 |
except Exception as e:
|
14 |
return f"Error: {e}"
|
15 |
|
16 |
-
iface = gr.Interface(fn=kickoff_worker, inputs="text", outputs="text"
|
17 |
iface.launch()
|
18 |
print("Launching worker...")
|
19 |
# kickoff_worker() # kickoff the worker after launching the interface
|
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
3 |
import shlex
|
4 |
+
subprocess.run(shlex.split('pip install wheel/torchmcubes-0.1.0-cp310-cp310-linux_x86_64.whl'))
|
5 |
|
6 |
def greet(name):
|
7 |
return "Hello " + name + "!!"
|
|
|
13 |
except Exception as e:
|
14 |
return f"Error: {e}"
|
15 |
|
16 |
+
iface = gr.Interface(fn=kickoff_worker, inputs="text", outputs="text")
|
17 |
iface.launch()
|
18 |
print("Launching worker...")
|
19 |
# kickoff_worker() # kickoff the worker after launching the interface
|