Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,15 +22,9 @@ metric_choices = {
|
|
| 22 |
|
| 23 |
# --- Description from your thesis in English ---
|
| 24 |
description_text = """
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
This
|
| 28 |
-
Some key points:
|
| 29 |
-
- **Geographical presence**: Store's locations are mostly in the US and Europe.
|
| 30 |
-
- **Most visited locations**: High review counts often indicate busy restaurants.
|
| 31 |
-
- **Traffic analysis**: Variations in reviews and real-time traffic can suggest an increase or decrease in customer visits.
|
| 32 |
-
- **Caveats**: Review increases do not always correspond to more customers; they can reflect satisfaction or dissatisfaction.
|
| 33 |
-
- **Applications**: This approach can be applied to other chains and even real-time traffic monitoring.
|
| 34 |
"""
|
| 35 |
|
| 36 |
# --- Function to update the map ---
|
|
@@ -65,7 +59,7 @@ def update_map(selected_label):
|
|
| 65 |
# --- Gradio interface ---
|
| 66 |
with gr.Blocks() as demo:
|
| 67 |
# Title
|
| 68 |
-
gr.Markdown("<h1 style='text-align:center;color:#4B8BBE;'>Interactive Map
|
| 69 |
|
| 70 |
# Description at the top
|
| 71 |
gr.Markdown(f"<p style='text-align:center;'>{description_text}</p>")
|
|
|
|
| 22 |
|
| 23 |
# --- Description from your thesis in English ---
|
| 24 |
description_text = """
|
| 25 |
+
This map was created using data collected from Google Maps.
|
| 26 |
+
The main objective was to monitor all the stores of a specific company in order to track customer traffic and gain some real-time insights into sales trends.
|
| 27 |
+
This approach can be easily replicated for any other company.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
"""
|
| 29 |
|
| 30 |
# --- Function to update the map ---
|
|
|
|
| 59 |
# --- Gradio interface ---
|
| 60 |
with gr.Blocks() as demo:
|
| 61 |
# Title
|
| 62 |
+
gr.Markdown("<h1 style='text-align:center;color:#4B8BBE;'>Interactive Map</h1>")
|
| 63 |
|
| 64 |
# Description at the top
|
| 65 |
gr.Markdown(f"<p style='text-align:center;'>{description_text}</p>")
|