morinop commited on
Commit
d1879c0
1 Parent(s): d52eb29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -26,8 +26,9 @@ def greet(image):
26
  # key = os.getenv("OPENAI_API_KEY")
27
  # x = torch.ones([1,3,224,224])
28
  if(image is None):
29
- print_bn()
30
- else:
 
31
  print(type(image))
32
  image = torch.tensor(image).float()
33
  print(image.min(), image.max())
 
26
  # key = os.getenv("OPENAI_API_KEY")
27
  # x = torch.ones([1,3,224,224])
28
  if(image is None):
29
+ bn_data = print_bn()
30
+ return ','.join([f{x:.5f} for x in bn_data])
31
+ else:
32
  print(type(image))
33
  image = torch.tensor(image).float()
34
  print(image.min(), image.max())