cbensimon HF Staff commited on
Commit
3081768
·
1 Parent(s): 5340fb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -10,10 +10,14 @@ def greet(n, name):
10
  print(name)
11
  return n, n
12
 
 
 
 
 
13
  counter = gr.State(value=0)
14
 
15
  gr.Interface(
16
- fn=greet,
17
  inputs=[counter, gr.Text()],
18
  outputs=[counter, gr.Number()],
19
  ).launch()
 
10
  print(name)
11
  return n, n
12
 
13
+ def greet_raw(n, name):
14
+ print(name)
15
+ return n, n
16
+
17
  counter = gr.State(value=0)
18
 
19
  gr.Interface(
20
+ fn=greet_raw,
21
  inputs=[counter, gr.Text()],
22
  outputs=[counter, gr.Number()],
23
  ).launch()