Spaces:
Sleeping
Sleeping
Fix minimum
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ images_converted = np.array(images_converted)
|
|
| 59 |
def image_classifier(value):
|
| 60 |
return np.clip(((variational_decoder(many[(value * 10)].numpy().reshape(1, -1))[0]) * 255), 0, 255).astype(int)[:, :, 0]
|
| 61 |
|
| 62 |
-
input_value_d = gr.Slider(minimum=
|
| 63 |
demo = gr.Interface(fn=image_classifier, inputs=input_value_d, outputs="image", live=True)
|
| 64 |
|
| 65 |
# Launch the interface
|
|
|
|
| 59 |
def image_classifier(value):
|
| 60 |
return np.clip(((variational_decoder(many[(value * 10)].numpy().reshape(1, -1))[0]) * 255), 0, 255).astype(int)[:, :, 0]
|
| 61 |
|
| 62 |
+
input_value_d = gr.Slider(minimum=2, maximum=99, step=1)
|
| 63 |
demo = gr.Interface(fn=image_classifier, inputs=input_value_d, outputs="image", live=True)
|
| 64 |
|
| 65 |
# Launch the interface
|