Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,9 @@ def generate_digits(bandwidth, num_samples):
|
|
71 |
# create the Gradio interface
|
72 |
inputs = [
|
73 |
gr.inputs.Slider(minimum=1, maximum=10, step=1, label="Bandwidth"),
|
74 |
-
gr.inputs.Number(default=44, label="Number of Samples")
|
|
|
|
|
75 |
]
|
76 |
output = gr.outputs.Image(type="pil")
|
77 |
|
@@ -83,4 +85,4 @@ examples = [
|
|
83 |
[7, 51] # Changed to integer values
|
84 |
]
|
85 |
|
86 |
-
gr.Interface(generate_digits, inputs, output, title=title, description=description, examples=examples).launch()
|
|
|
71 |
# create the Gradio interface
|
72 |
inputs = [
|
73 |
gr.inputs.Slider(minimum=1, maximum=10, step=1, label="Bandwidth"),
|
74 |
+
# gr.inputs.Number(default=44, label="Number of Samples")
|
75 |
+
# Change to Slider
|
76 |
+
gr.inputs.Slider(minimum=1, maximum=100, step=1, label="Number of Samples")
|
77 |
]
|
78 |
output = gr.outputs.Image(type="pil")
|
79 |
|
|
|
85 |
[7, 51] # Changed to integer values
|
86 |
]
|
87 |
|
88 |
+
gr.Interface(generate_digits, inputs, output, title=title, description=description, examples=examples, live=True).launch()
|