Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ from langchain_core.runnables import RunnablePassthrough
|
|
101 |
df = pd.read_json("./tourisme_chatbot.json")
|
102 |
|
103 |
# Randomly sample a portion of the dataset (e.g., 30% of the data)
|
104 |
-
sampled_df = df.sample(frac=0.
|
105 |
|
106 |
context_data = []
|
107 |
for i in range(len(sampled_df)): # Use the sampled data
|
|
|
101 |
df = pd.read_json("./tourisme_chatbot.json")
|
102 |
|
103 |
# Randomly sample a portion of the dataset (e.g., 30% of the data)
|
104 |
+
sampled_df = df.sample(frac=0.1, random_state=42) # Adjust the fraction as needed
|
105 |
|
106 |
context_data = []
|
107 |
for i in range(len(sampled_df)): # Use the sampled data
|