Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
-
import subprocess, os, shutil, time, sys
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def setup_virtual_env():
|
| 4 |
# Create a virtual environment directory
|
|
|
|
| 1 |
+
import subprocess, os, shutil, time, sys, platform
|
| 2 |
+
if platform.system() == 'Windows':
|
| 3 |
+
raise SystemError("You are trying to run this demo on **Windows**. Windows is not supported. If you would still like to try, remove lines 2 & 3 in the code to bypass this warning.")
|
| 4 |
|
| 5 |
def setup_virtual_env():
|
| 6 |
# Create a virtual environment directory
|