Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -222,6 +222,7 @@ def run_inference(image):
|
|
222 |
# Convert output to image
|
223 |
output = output.cpu().squeeze(0).permute(1, 2, 0).numpy()
|
224 |
output = ((output - output.min()) / (output.max() - output.min()) * 255).astype(np.uint8)
|
|
|
225 |
return output
|
226 |
|
227 |
def to_hub(model):
|
|
|
222 |
# Convert output to image
|
223 |
output = output.cpu().squeeze(0).permute(1, 2, 0).numpy()
|
224 |
output = ((output - output.min()) / (output.max() - output.min()) * 255).astype(np.uint8)
|
225 |
+
rp(output)
|
226 |
return output
|
227 |
|
228 |
def to_hub(model):
|