seyia92coding
commited on
Commit
•
dbb0f24
1
Parent(s):
8cc04c9
Add dataset code
Browse files- hugging_face_demo_v1.py +4 -2
hugging_face_demo_v1.py
CHANGED
@@ -20,9 +20,11 @@ from sklearn.feature_extraction.text import TfidfVectorizer
|
|
20 |
!pip install gradio
|
21 |
import gradio as gr
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
|
|
|
|
26 |
|
27 |
# the function to extract years
|
28 |
def extract_year(date):
|
|
|
20 |
!pip install gradio
|
21 |
import gradio as gr
|
22 |
|
23 |
+
from datasets import load_dataset
|
24 |
|
25 |
+
dataset = load_dataset("seyia92coding/steam-clean-games-2019")
|
26 |
+
|
27 |
+
df = pd.read_csv(dataset, error_bad_lines=False, encoding='utf-8')
|
28 |
|
29 |
# the function to extract years
|
30 |
def extract_year(date):
|