Spaces:
Sleeping
Sleeping
Commit
·
4015ede
1
Parent(s):
f8e0912
Fix syntax error in app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
def word_and_char_counter(text):
|
4 |
words = text.split()
|
5 |
num_words = len(words)
|
6 |
-
num_chars = len(text.replace( , )) # Remove spaces before counting characters
|
7 |
return f{num_words} words, {num_chars} characters
|
8 |
|
9 |
# Define your interface
|
|
|
3 |
def word_and_char_counter(text):
|
4 |
words = text.split()
|
5 |
num_words = len(words)
|
6 |
+
num_chars = len(text.replace(" ", "")) # Remove spaces before counting characters
|
7 |
return f{num_words} words, {num_chars} characters
|
8 |
|
9 |
# Define your interface
|