Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ import torch
|
|
| 15 |
import pandas as pd
|
| 16 |
import os
|
| 17 |
import chromedriver_autoinstaller
|
|
|
|
| 18 |
from nltk.tokenize import word_tokenize
|
| 19 |
from nltk.stem.lancaster import LancasterStemmer
|
| 20 |
|
|
@@ -106,7 +107,7 @@ tokenizer_emotion, model_emotion = load_emotion_model()
|
|
| 106 |
# Google Places API setup for wellness professionals
|
| 107 |
url = "https://maps.googleapis.com/maps/api/place/textsearch/json"
|
| 108 |
places_details_url = "https://maps.googleapis.com/maps/api/place/details/json"
|
| 109 |
-
api_key = "GOOGLE_API_KEY"
|
| 110 |
|
| 111 |
# Install Chrome and Chromedriver for web scraping
|
| 112 |
def install_chrome_and_driver():
|
|
|
|
| 15 |
import pandas as pd
|
| 16 |
import os
|
| 17 |
import chromedriver_autoinstaller
|
| 18 |
+
import streamlit as st # Add Streamlit import
|
| 19 |
from nltk.tokenize import word_tokenize
|
| 20 |
from nltk.stem.lancaster import LancasterStemmer
|
| 21 |
|
|
|
|
| 107 |
# Google Places API setup for wellness professionals
|
| 108 |
url = "https://maps.googleapis.com/maps/api/place/textsearch/json"
|
| 109 |
places_details_url = "https://maps.googleapis.com/maps/api/place/details/json"
|
| 110 |
+
api_key = os.getenv("GOOGLE_API_KEY") # Use environment variable for security
|
| 111 |
|
| 112 |
# Install Chrome and Chromedriver for web scraping
|
| 113 |
def install_chrome_and_driver():
|