ysharma HF staff commited on
Commit
ba33199
·
verified ·
1 Parent(s): cfdaab7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,9 +16,9 @@ with gr.Blocks() as demo1:
16
 
17
  import gradio as gr
18
 
19
- def predict(a,b):
20
- print(a,b)
21
- return {"inputs": [a,b]}
22
 
23
  with gr.Blocks() as demo:
24
  s = gr.Slider(1, 4, step=1, interactive=True)
 
16
 
17
  import gradio as gr
18
 
19
+ def predict(*args):
20
+ print(args)
21
+ return {"inputs": list(args)}
22
 
23
  with gr.Blocks() as demo:
24
  s = gr.Slider(1, 4, step=1, interactive=True)