Spaces:
Sleeping
Sleeping
Commit ·
a83d91e
1
Parent(s): 322a67e
model
Browse files2 unmodified lines3456789102 unmodified linesimport tensorflow as tfimport numpy as npimport cv2# %%model_folder = 'plants_disease'with open(f'{model_folder}/labels.txt', 'r') as f:labels = f.read().split('\n')2 unmodified lines345678910111213141516171819202122232 unmodified linesimport tensorflow as tfimport numpy as npimport cv2import osmodel_folder = 'plants_disease'destination = model_folderif not os.path.exists(destination):import subprocessrepo_url = os.getenv("GIT_CORE")command = f'git clone {repo_url} {destination}'try:subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)print('Repository cloned successfully.')except subprocess.CalledProcessError as e:print(f'Error cloning repository: {e.output.decode()}')# %%with open(f'{model_folder}/labels.txt', 'r') as f:labels = f.read().split('\n')
app.py+14-1