Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,9 @@ import tensorflow as tf
|
|
20 |
# Ensure necessary NLTK resources are downloaded
|
21 |
nltk.download('punkt')
|
22 |
|
|
|
|
|
|
|
23 |
# Initialize the stemmer
|
24 |
stemmer = LancasterStemmer()
|
25 |
|
@@ -308,7 +311,7 @@ with gr.Blocks() as demo:
|
|
308 |
return str(e)
|
309 |
|
310 |
nearby_health_professionals_table = gr.Dataframe(headers=["Name", "Address", "Phone", "Rating", "Business Status", "User Reviews Total", "Website", "Types", "Latitude", "Longitude", "Opening Hours", "Reviews", "Email"])
|
311 |
-
submit_location.click(
|
312 |
|
313 |
# User input for text (sentiment analysis)
|
314 |
user_input_sentiment = gr.Textbox(lines=1, label="Enter text to analyze sentiment:")
|
|
|
20 |
# Ensure necessary NLTK resources are downloaded
|
21 |
nltk.download('punkt')
|
22 |
|
23 |
+
# Import LancasterStemmer from nltk.stem
|
24 |
+
from nltk.stem import LancasterStemmer
|
25 |
+
|
26 |
# Initialize the stemmer
|
27 |
stemmer = LancasterStemmer()
|
28 |
|
|
|
311 |
return str(e)
|
312 |
|
313 |
nearby_health_professionals_table = gr.Dataframe(headers=["Name", "Address", "Phone", "Rating", "Business Status", "User Reviews Total", "Website", "Types", "Latitude", "Longitude", "Opening Hours", "Reviews", "Email"])
|
314 |
+
submit_location.click(fetch_nearby_health_professionals, inputs=location_input, outputs=nearby_health_professionals_table)
|
315 |
|
316 |
# User input for text (sentiment analysis)
|
317 |
user_input_sentiment = gr.Textbox(lines=1, label="Enter text to analyze sentiment:")
|