Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,8 @@ def install_cuda_toolkit():
|
|
| 21 |
# Fix: arch_list[-1] += '+PTX'; IndexError: list index out of range
|
| 22 |
os.environ["TORCH_CUDA_ARCH_LIST"] = "8.0;8.6"
|
| 23 |
|
|
|
|
|
|
|
| 24 |
|
| 25 |
def load_file(path):
|
| 26 |
|
|
@@ -56,8 +58,6 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 56 |
|
| 57 |
|
| 58 |
if __name__ == "__main__":
|
| 59 |
-
|
| 60 |
-
install_cuda_toolkit()
|
| 61 |
|
| 62 |
demo.launch(
|
| 63 |
server_name='0.0.0.0',
|
|
|
|
| 21 |
# Fix: arch_list[-1] += '+PTX'; IndexError: list index out of range
|
| 22 |
os.environ["TORCH_CUDA_ARCH_LIST"] = "8.0;8.6"
|
| 23 |
|
| 24 |
+
install_cuda_toolkit()
|
| 25 |
+
|
| 26 |
|
| 27 |
def load_file(path):
|
| 28 |
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
if __name__ == "__main__":
|
|
|
|
|
|
|
| 61 |
|
| 62 |
demo.launch(
|
| 63 |
server_name='0.0.0.0',
|