khanfou
commited on
Commit
•
56e4d37
1
Parent(s):
47d0c0c
Update app.py
Browse files
app.py
CHANGED
@@ -2,21 +2,6 @@ import streamlit as st
|
|
2 |
from datasets import load_dataset
|
3 |
import pandas as pd
|
4 |
|
5 |
-
#dataset = load_dataset("HUPD/hupd",'sample',split='train', streaming=True)
|
6 |
-
#for example in dataset:
|
7 |
-
#print(example)
|
8 |
-
#break
|
9 |
-
|
10 |
-
#df = pd.DataFrame.from_dict(dataset_dict["train"])
|
11 |
-
|
12 |
-
# Create a DataFrame object from list
|
13 |
-
#df = pd.DataFrame(df,columns =['patent_number','decision', 'abstract', 'claims','filing_date'])
|
14 |
-
#st.dataframe(df)
|
15 |
-
|
16 |
-
|
17 |
-
#from datasets import load_dataset
|
18 |
-
#dataset = load_dataset('oscar-corpus/OSCAR-2201', 'en', split='train', streaming=True)
|
19 |
-
|
20 |
from datasets import load_dataset
|
21 |
dataset_dict = load_dataset('HUPD/hupd',
|
22 |
name='sample',
|
@@ -28,6 +13,8 @@ dataset_dict = load_dataset('HUPD/hupd',
|
|
28 |
val_filing_end_date='2017-01-31',
|
29 |
)
|
30 |
|
|
|
|
|
31 |
df = pd.DataFrame.from_dict(dataset_dict["train"])
|
32 |
df = pd.DataFrame(df,columns =['patent_number','decision', 'abstract', 'claims','filing_date'])
|
33 |
#st.dataframe(df)
|
|
|
2 |
from datasets import load_dataset
|
3 |
import pandas as pd
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
from datasets import load_dataset
|
6 |
dataset_dict = load_dataset('HUPD/hupd',
|
7 |
name='sample',
|
|
|
13 |
val_filing_end_date='2017-01-31',
|
14 |
)
|
15 |
|
16 |
+
from google.colab import data_table
|
17 |
+
data_table.enable_dataframe_formatter()
|
18 |
df = pd.DataFrame.from_dict(dataset_dict["train"])
|
19 |
df = pd.DataFrame(df,columns =['patent_number','decision', 'abstract', 'claims','filing_date'])
|
20 |
#st.dataframe(df)
|