Spaces:
Sleeping
Sleeping
pablovela5620
commited on
Commit
·
2e3c4e2
1
Parent(s):
b607519
add pixi as backend
Browse files- .gitattributes +3 -0
- .gitignore +4 -0
- app.py +5 -6
- pixi.toml +28 -0
- pixi_app.py +6 -0
.gitattributes
CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
# GitHub syntax highlighting
|
37 |
+
pixi.lock linguist-language=YAML
|
38 |
+
|
.gitignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# pixi environments
|
2 |
+
.pixi
|
3 |
+
*.egg-info
|
4 |
+
|
app.py
CHANGED
@@ -11,11 +11,10 @@ def check_and_install_pixi():
|
|
11 |
# Install pixi using the provided installation script
|
12 |
subprocess.check_call("curl -fsSL https://pixi.sh/install.sh | bash", shell=True)
|
13 |
|
|
|
|
|
|
|
|
|
14 |
if __name__ == "__main__":
|
15 |
check_and_install_pixi()
|
16 |
-
|
17 |
-
def greet(name):
|
18 |
-
return "Hello " + name + "!!"
|
19 |
-
|
20 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
21 |
-
demo.launch()
|
|
|
11 |
# Install pixi using the provided installation script
|
12 |
subprocess.check_call("curl -fsSL https://pixi.sh/install.sh | bash", shell=True)
|
13 |
|
14 |
+
def pixi_run():
|
15 |
+
command = "pixi run app"
|
16 |
+
subprocess.check_call(command, shell=True)
|
17 |
+
|
18 |
if __name__ == "__main__":
|
19 |
check_and_install_pixi()
|
20 |
+
pixi_run()
|
|
|
|
|
|
|
|
|
|
pixi.toml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "mini-dpvo"
|
3 |
+
version = "0.1.1"
|
4 |
+
description = "Add a short description here"
|
5 |
+
authors = ["pablovela5620 <pablovela5620@gmail.com>"]
|
6 |
+
channels = ["nvidia/label/cuda-11.8.0", "nvidia", "conda-forge", "pytorch"]
|
7 |
+
platforms = ["linux-64"]
|
8 |
+
|
9 |
+
[system-requirements]
|
10 |
+
libc = { family="glibc", version="2.31" }
|
11 |
+
|
12 |
+
[tasks]
|
13 |
+
app = "python pixi_app.py"
|
14 |
+
|
15 |
+
[dependencies]
|
16 |
+
python = "3.11.*"
|
17 |
+
pip = ">=23.3.2,<23.4"
|
18 |
+
cuda = {version = "*", channel="nvidia/label/cuda-11.8.0"}
|
19 |
+
pytorch-cuda = {version = "11.8.*", channel="pytorch"}
|
20 |
+
pytorch = {version = ">=2.2.0,<2.3", channel="pytorch"}
|
21 |
+
torchvision = {version = ">=0.17.0,<0.18", channel="pytorch"}
|
22 |
+
einops = ">=0.7.0,<0.8"
|
23 |
+
jaxtyping = ">=0.2.28,<0.3"
|
24 |
+
gradio = ">=4.29.0,<4.30"
|
25 |
+
rerun-sdk = ">=0.15.1,<0.16"
|
26 |
+
|
27 |
+
[pypi-dependencies]
|
28 |
+
mini-dust3r = "*"
|
pixi_app.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
def greet(name):
|
3 |
+
return "Hello " + name + "!!"
|
4 |
+
|
5 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
6 |
+
demo.launch()
|