Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
return
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
|
|
|
| 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)
|