OmPrakashSingh1704 commited on
Commit
5869ab0
·
verified ·
1 Parent(s): b376fd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -2,9 +2,6 @@ import subprocess
2
  import os
3
  import platform
4
  import sys
5
- from huggingface_hub import login
6
-
7
- login(token=os.getenv("TOKEN"))
8
 
9
  def run_command(command, cwd=None, shell=False):
10
  """Helper function to run a shell command."""
@@ -37,6 +34,10 @@ if not os.path.exists(clone_path):
37
  # Step 7: Install dependencies from requirements.txt
38
  run_command([sys.executable, '-m', 'pip', 'install', '-r', 'requirements.txt'], cwd=repo_dir)
39
 
 
 
 
 
40
  # Run the flux_train_ui.py file
41
  run_command([sys.executable, 'flux_train_ui.py'], cwd=repo_dir)
42
 
 
2
  import os
3
  import platform
4
  import sys
 
 
 
5
 
6
  def run_command(command, cwd=None, shell=False):
7
  """Helper function to run a shell command."""
 
34
  # Step 7: Install dependencies from requirements.txt
35
  run_command([sys.executable, '-m', 'pip', 'install', '-r', 'requirements.txt'], cwd=repo_dir)
36
 
37
+ from huggingface_hub import login
38
+
39
+ login(token=os.getenv("TOKEN"))
40
+
41
  # Run the flux_train_ui.py file
42
  run_command([sys.executable, 'flux_train_ui.py'], cwd=repo_dir)
43