thirudev commited on
Commit
02a9068
·
verified ·
1 Parent(s): 9349390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,8 +1,14 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
 
 
 
 
 
 
7
 
8
- demo.launch(share=True) # Share your demo with just 1 extra parameter 🚀
 
1
  import gradio as gr
2
 
3
+ def char_count(s):
4
+ return len(s)
5
 
6
+ iface = gr.Interface(
7
+ fn=char_count,
8
+ inputs="text",
9
+ outputs="number",
10
+ title="ThiruApps - Character Counting",
11
+ description="Counts character is input text"
12
+ )
13
 
14
+ iface.launch(share=True)