ttb63 commited on
Commit
c25b860
·
verified ·
1 Parent(s): a6c1b45

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def count_characters(text):
4
+ return f"Number of characters: {len(text)}"
5
+
6
+ demo = gr.Interface(
7
+ fn=count_characters,
8
+ inputs=gr.Textbox(label="Enter your text"),
9
+ outputs="text",
10
+ title="Character Counter"
11
+ )
12
+
13
+ demo.launch()