mrfakename commited on
Commit
cf449d9
1 Parent(s): 5c1d505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -5,12 +5,9 @@ def setup_virtual_env():
5
  subprocess.run(['python', '-m', 'venv', './venv_ui'])
6
 
7
  # Activate the virtual environment
8
- if sys.platform == 'win32':
9
- activate_script = os.path.join('venv_ui', 'Scripts', 'activate')
10
- else:
11
- activate_script = os.path.join('venv_ui', 'bin', 'activate')
12
- subprocess.run(['source', activate_script], shell=True)
13
-
14
  # Install required packages
15
  subprocess.run(['pip', 'install', 'gradio', 'requests'])
16
 
 
5
  subprocess.run(['python', '-m', 'venv', './venv_ui'])
6
 
7
  # Activate the virtual environment
8
+ activate_script = os.path.join('venv_ui', 'bin', 'activate')
9
+ subprocess.run([activate_script], shell=True)
10
+
 
 
 
11
  # Install required packages
12
  subprocess.run(['pip', 'install', 'gradio', 'requests'])
13