Running build_ops.sh directly instead of relying on wheel
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ subprocess.run(
|
|
| 34 |
)
|
| 35 |
)
|
| 36 |
from gradio_image_prompter import ImagePrompter
|
| 37 |
-
|
| 38 |
subprocess.run(
|
| 39 |
shlex.split(
|
| 40 |
"pip install MultiScaleDeformableAttention-1.0-cp310-cp310-linux_x86_64.whl"
|
|
@@ -46,6 +46,10 @@ subprocess.run(
|
|
| 46 |
"python test.py"
|
| 47 |
)
|
| 48 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
class AppSteps(Enum):
|
| 51 |
JUST_TEXT = 1
|
|
|
|
| 34 |
)
|
| 35 |
)
|
| 36 |
from gradio_image_prompter import ImagePrompter
|
| 37 |
+
"""
|
| 38 |
subprocess.run(
|
| 39 |
shlex.split(
|
| 40 |
"pip install MultiScaleDeformableAttention-1.0-cp310-cp310-linux_x86_64.whl"
|
|
|
|
| 46 |
"python test.py"
|
| 47 |
)
|
| 48 |
)
|
| 49 |
+
"""
|
| 50 |
+
with open('./build_ops.sh', 'rb') as file:
|
| 51 |
+
script = file.read()
|
| 52 |
+
call(script, shell=True)
|
| 53 |
|
| 54 |
class AppSteps(Enum):
|
| 55 |
JUST_TEXT = 1
|