Update app.py
Browse files
app.py
CHANGED
@@ -48,10 +48,10 @@ conn.close()
|
|
48 |
'''
|
49 |
|
50 |
# Create a sample DataFrame with 3,000 records and 20 columns
|
51 |
-
num_records =
|
52 |
num_columns = 20
|
53 |
|
54 |
-
|
55 |
data = {
|
56 |
f"column_{i}": np.random.randint(0, 100, num_records) for i in range(num_columns)
|
57 |
}
|
@@ -59,17 +59,17 @@ data = {
|
|
59 |
# Randomize the year and city columns
|
60 |
years = list(range(2000, 2023)) # Range of years
|
61 |
cities = ["New York", "Los Angeles", "Chicago", "Houston", "Miami"] # List of cities
|
62 |
-
|
63 |
#data["year"] = [random.choice(years) for _ in range(num_records)]
|
64 |
#data["city"] = [random.choice(cities) for _ in range(num_records)]
|
65 |
|
66 |
-
|
67 |
|
68 |
data = {
|
69 |
"year": [1896, 1900, 1904, 2004, 2008, 2012],
|
70 |
"city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
|
71 |
}
|
72 |
-
table = pd.DataFrame.from_dict(data)
|
73 |
|
74 |
|
75 |
# Load the chatbot model
|
|
|
48 |
'''
|
49 |
|
50 |
# Create a sample DataFrame with 3,000 records and 20 columns
|
51 |
+
num_records = 20
|
52 |
num_columns = 20
|
53 |
|
54 |
+
|
55 |
data = {
|
56 |
f"column_{i}": np.random.randint(0, 100, num_records) for i in range(num_columns)
|
57 |
}
|
|
|
59 |
# Randomize the year and city columns
|
60 |
years = list(range(2000, 2023)) # Range of years
|
61 |
cities = ["New York", "Los Angeles", "Chicago", "Houston", "Miami"] # List of cities
|
62 |
+
|
63 |
#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 |
data = {
|
69 |
"year": [1896, 1900, 1904, 2004, 2008, 2012],
|
70 |
"city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
|
71 |
}
|
72 |
+
#table = pd.DataFrame.from_dict(data)
|
73 |
|
74 |
|
75 |
# Load the chatbot model
|