mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
Fixing links in plotly map guide + demo (#2578)
* move demo to gradio org * Update CHANGELOG.md * Update CHANGELOG.md
This commit is contained in:
parent
f0d1cdf08f
commit
3f9cf301ed
@ -5,6 +5,7 @@ No changes to highlight.
|
||||
|
||||
## Bug Fixes:
|
||||
* Fixed bug where None could not be used for File,Model3D, and Audio examples by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 2588](https://github.com/gradio-app/gradio/pull/2588)
|
||||
* Fixed links in Plotly map guide + demo by [@dawoodkhan82](https://github.com/dawoodkhan82) in [PR 2578](https://github.com/gradio-app/gradio/pull/2578)
|
||||
|
||||
## Documentation Changes:
|
||||
No changes to highlight.
|
||||
|
@ -3,7 +3,7 @@ import pandas as pd
|
||||
import plotly.graph_objects as go
|
||||
from datasets import load_dataset
|
||||
|
||||
dataset = load_dataset("dawood/NYC-Airbnb-Open-Data", split="train")
|
||||
dataset = load_dataset("gradio/NYC-Airbnb-Open-Data", split="train")
|
||||
df = dataset.to_pandas()
|
||||
|
||||
def filter_map(min_price, max_price, boroughs):
|
||||
|
@ -9,9 +9,9 @@ This guide explains how you can use Gradio to plot geographical data on a map us
|
||||
|
||||
## Overview
|
||||
|
||||
We will be using the New York City Airbnb dataset, which is hosted on kaggle [here](https://www.kaggle.com/datasets/dgomonov/new-york-city-airbnb-open-data). I've uploaded it to the Hugging Face Hub as a dataset [here](https://huggingface.co/datasets/dawood/NYC-Airbnb-Open-Data) for easier use and download. Using this data we will plot Airbnb locations on a map output and allow filtering based on price and location. Below is the demo that we will be buiding. ⚡️
|
||||
We will be using the New York City Airbnb dataset, which is hosted on kaggle [here](https://www.kaggle.com/datasets/dgomonov/new-york-city-airbnb-open-data). I've uploaded it to the Hugging Face Hub as a dataset [here](https://huggingface.co/datasets/gradio/NYC-Airbnb-Open-Data) for easier use and download. Using this data we will plot Airbnb locations on a map output and allow filtering based on price and location. Below is the demo that we will be buiding. ⚡️
|
||||
|
||||
<gradio-app space="dawood/NYC-Airbnb-Map"> </gradio-app>
|
||||
<gradio-app space="gradio/NYC-Airbnb-Map"> </gradio-app>
|
||||
|
||||
|
||||
## Step 1 - Loading CSV data 💾
|
||||
@ -21,7 +21,7 @@ Let's start by loading the Airbnb NYC data from the Hugging Face Hub.
|
||||
```python
|
||||
import pandas as pd
|
||||
|
||||
dataset = load_dataset("dawood/NYC-Airbnb-Open-Data", split="train")
|
||||
dataset = load_dataset("gradio/NYC-Airbnb-Open-Data", split="train")
|
||||
df = dataset.to_pandas()
|
||||
|
||||
def filter_map(min_price, max_price, boroughs):
|
||||
@ -99,7 +99,7 @@ import gradio as gr
|
||||
import pandas as pd
|
||||
import plotly.graph_objects as go
|
||||
|
||||
dataset = load_dataset("dawood/NYC-Airbnb-Open-Data", split="train")
|
||||
dataset = load_dataset("gradio/NYC-Airbnb-Open-Data", split="train")
|
||||
df = dataset.to_pandas()
|
||||
|
||||
def filter_map(min_price, max_price, boroughs):
|
||||
@ -163,4 +163,4 @@ If you haven't used Spaces before, follow the previous guide [here](/using_huggi
|
||||
## Conclusion 🎉
|
||||
And you're all done! That's all the code you need to build a map demo.
|
||||
|
||||
Here's a link to the demo [Map demo](https://huggingface.co/spaces/dawood/NYC-Airbnb-Map) and [complete code](https://huggingface.co/spaces/dawood/NYC-Airbnb-Map/blob/main/app.py) (on Hugging Face Spaces)
|
||||
Here's a link to the demo [Map demo](https://huggingface.co/spaces/gradio/NYC-Airbnb-Map) and [complete code](https://huggingface.co/spaces/gradio/NYC-Airbnb-Map/blob/main/app.py) (on Hugging Face Spaces)
|
||||
|
Loading…
Reference in New Issue
Block a user