Sukanth07 commited on
Commit
ec9f73e
·
1 Parent(s): afb81b4

"Comment out `utils.copy_builder()` call in app.py and corresponding function definition in utils.py"

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. src/utils.py +7 -7
app.py CHANGED
@@ -7,7 +7,7 @@ from src.logger import get_logger
7
  logger = get_logger(__name__)
8
  warnings.filterwarnings("ignore")
9
 
10
- utils.copy_builder()
11
 
12
  def show_processing_text():
13
  return gr.update(visible=True), gr.update(visible=False)
 
7
  logger = get_logger(__name__)
8
  warnings.filterwarnings("ignore")
9
 
10
+ # utils.copy_builder()
11
 
12
  def show_processing_text():
13
  return gr.update(visible=True), gr.update(visible=False)
src/utils.py CHANGED
@@ -2,13 +2,13 @@ import site
2
  import subprocess
3
  from .config import *
4
 
5
- def copy_builder():
6
- try:
7
- site_packages_path = site.getsitepackages()[0]
8
- destination_path = os.path.join(site_packages_path, 'google/protobuf/internal/')
9
- subprocess.run(["cp", "./builder.py", destination_path], shell=True, check=True)
10
- except Exception as e:
11
- raise Exception(f"Failed to copy builder.py to site-packages: {e}")
12
 
13
  css="""
14
  .container {
 
2
  import subprocess
3
  from .config import *
4
 
5
+ # def copy_builder():
6
+ # try:
7
+ # site_packages_path = site.getsitepackages()[0]
8
+ # destination_path = os.path.join(site_packages_path, 'google/protobuf/internal/')
9
+ # subprocess.run(["cp", "./builder.py", destination_path], shell=True, check=True)
10
+ # except Exception as e:
11
+ # raise Exception(f"Failed to copy builder.py to site-packages: {e}")
12
 
13
  css="""
14
  .container {