NeoPy commited on
Commit
a0917fd
·
verified ·
1 Parent(s): fd55c28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -30,13 +30,17 @@ class SimpleModern(Default):
30
  )
31
 
32
 
 
 
 
 
33
 
34
 
35
  # Assuming SimpleModern is your custom theme class
36
  demo = gr.Interface(
37
  fn=your_function,
38
- inputs=gr.inputs.Textbox(),
39
- outputs=gr.outputs.Textbox(),
40
  theme=SimpleModern(),
41
  title="Test App",
42
  )
 
30
  )
31
 
32
 
33
+ def your_function(text):
34
+ print(text)
35
+ range = text
36
+ return range
37
 
38
 
39
  # Assuming SimpleModern is your custom theme class
40
  demo = gr.Interface(
41
  fn=your_function,
42
+ inputs=gr.Textbox(),
43
+ outputs=gr.Textbox(),
44
  theme=SimpleModern(),
45
  title="Test App",
46
  )