DebasishDhal99 commited on
Commit
ec01724
1 Parent(s): 0dfb40d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import matplotlib.pyplot as plt
2
  import random
3
  import gradio as gr
 
4
 
5
 
6
  def generate_random_walk(iters):
@@ -66,5 +67,7 @@ def generate_random_walk(iters):
66
  return buf.read()
67
 
68
  # Create a Gradio interface
69
- iface = gr.Interface(fn=generate_random_walk, inputs="text", outputs="image", title="Random Walk Plot")
 
 
70
  iface.launch()
 
1
  import matplotlib.pyplot as plt
2
  import random
3
  import gradio as gr
4
+ import io
5
 
6
 
7
  def generate_random_walk(iters):
 
67
  return buf.read()
68
 
69
  # Create a Gradio interface
70
+
71
+
72
+ iface = gr.Interface(fn=generate_random_walk, inputs=gr.inputs.Number(label="How many random steps"), outputs="image", title="Random Walk Plot")
73
  iface.launch()