Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import gradio.themes as Soft
|
3 |
import pixeltable as pxt
|
|
|
1 |
+
import subprocess
|
2 |
+
import sys
|
3 |
+
|
4 |
+
def install(package):
|
5 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
6 |
+
|
7 |
+
install("torch==2.4.1")
|
8 |
+
install("torchvision==0.19.1")
|
9 |
+
install("pixeltable==0.2.20")
|
10 |
+
install("git+https://github.com/Megvii-BaseDetection/YOLOX.git")
|
11 |
+
|
12 |
import gradio as gr
|
13 |
import gradio.themes as Soft
|
14 |
import pixeltable as pxt
|