GMARTINEZMILLA commited on
Commit
d72df91
·
verified ·
1 Parent(s): 81f653c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -118,12 +118,9 @@ def get_supplier_name(code):
118
  name = nombres_proveedores[nombres_proveedores['codigo'] == code]['nombre'].values
119
  return name[0] if len(name) > 0 else code
120
 
121
- def load_lottie_url(url):
122
- response = requests.get(url)
123
- if response.status_code == 200:
124
- return response.json()
125
- else:
126
- return None
127
 
128
  # Load the animation
129
  lottie_animation = load_lottie_file("LoadingAnimation/Animation.json")
 
118
  name = nombres_proveedores[nombres_proveedores['codigo'] == code]['nombre'].values
119
  return name[0] if len(name) > 0 else code
120
 
121
+ def load_lottie_file(filepath: str):
122
+ with open(filepath, 'r') as f:
123
+ return json.load(f)
 
 
 
124
 
125
  # Load the animation
126
  lottie_animation = load_lottie_file("LoadingAnimation/Animation.json")