Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ conn.close()
|
|
48 |
'''
|
49 |
|
50 |
# Create a sample DataFrame with 3,000 records and 20 columns
|
51 |
-
|
52 |
num_records = 100
|
53 |
num_columns = 20
|
54 |
|
@@ -64,13 +64,13 @@ data["year"] = [random.choice(years) for _ in range(num_records)]
|
|
64 |
data["city"] = [random.choice(cities) for _ in range(num_records)]
|
65 |
|
66 |
table = pd.DataFrame(data)
|
67 |
-
|
68 |
|
69 |
data = {
|
70 |
"year": [1896, 1900, 1904, 2004, 2008, 2012],
|
71 |
"city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
|
72 |
}
|
73 |
-
|
74 |
|
75 |
|
76 |
# Load the chatbot model
|
|
|
48 |
'''
|
49 |
|
50 |
# Create a sample DataFrame with 3,000 records and 20 columns
|
51 |
+
'''
|
52 |
num_records = 100
|
53 |
num_columns = 20
|
54 |
|
|
|
64 |
data["city"] = [random.choice(cities) for _ in range(num_records)]
|
65 |
|
66 |
table = pd.DataFrame(data)
|
67 |
+
'''
|
68 |
|
69 |
data = {
|
70 |
"year": [1896, 1900, 1904, 2004, 2008, 2012],
|
71 |
"city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
|
72 |
}
|
73 |
+
table = pd.DataFrame.from_dict(data)
|
74 |
|
75 |
|
76 |
# Load the chatbot model
|