rioanggara commited on
Commit
3b9ff76
·
1 Parent(s): 4015ede

return wrong

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ 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
10
  interface = gr.Interface(
 
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
10
  interface = gr.Interface(