fschwartzer commited on
Commit
476a01c
·
verified ·
1 Parent(s): a8d2d6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- prompt = f"Analyze the following data to answer the question: {data.head().to_string(index=False)}\nQuestion: {query}\nAnswer:"
 
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