Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def image_text(image):
|
|
38 |
detected_text = " ".join([item[1] for item in text])
|
39 |
|
40 |
# Extract individual words, convert to lowercase, and add "#" symbol
|
41 |
-
detected_text= ['#' + entry[1].strip().lower().replace(" ", "
|
42 |
return detected_text
|
43 |
|
44 |
# Load NLTK stopwords for filtering
|
|
|
38 |
detected_text = " ".join([item[1] for item in text])
|
39 |
|
40 |
# Extract individual words, convert to lowercase, and add "#" symbol
|
41 |
+
detected_text= ['#' + entry[1].strip().lower().replace(" ", "") for entry in text]
|
42 |
return detected_text
|
43 |
|
44 |
# Load NLTK stopwords for filtering
|