Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ data = pd.read_csv('anomalies.csv')
|
|
9 |
def response(query, history):
|
10 |
global processing
|
11 |
processing = True
|
12 |
-
|
|
|
13 |
output = generate_answers(prompt)
|
14 |
history.append((query, output))
|
15 |
processing = False
|
|
|
9 |
def response(query, history):
|
10 |
global processing
|
11 |
processing = True
|
12 |
+
context = f"Analyze the following data to answer the question: {data.head().to_string(index=False)}"
|
13 |
+
prompt = {query}
|
14 |
output = generate_answers(prompt)
|
15 |
history.append((query, output))
|
16 |
processing = False
|