Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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())
|