agentharbor commited on
Commit
f3dda89
·
verified ·
1 Parent(s): 2c83b7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -108,14 +108,14 @@ def interact_with_agent(file_input, additional_notes):
108
  - Columns with dtypes:
109
  {data_file.dtypes}"""
110
 
111
- #enhanced_notes = model_response(f'''Given the metadata of the dataset {data_structure_notes} and the context provided by the user {additional_notes}, figure out the
112
- #domain this dataset belongs to. Now assume the role of an expert data analyst in this domain and generate instructions/commentary that will help a large language model analyze
113
- #this dataset.''')
114
 
115
  prompt = base_prompt.format(structure_notes=data_structure_notes)
116
 
117
  if additional_notes and len(additional_notes) > 0:
118
- prompt += "\nAdditional notes on the data:\n" + data_structure_notes
119
 
120
  messages = [gr.ChatMessage(role="user", content=prompt)]
121
  yield messages + [
 
108
  - Columns with dtypes:
109
  {data_file.dtypes}"""
110
 
111
+ enhanced_notes = model_response(f'''Given the metadata of the dataset {data_structure_notes} and the context provided by the user {additional_notes}, figure out the
112
+ domain this dataset belongs to. Now assume the role of an expert data analyst in this domain and generate instructions/commentary that will help a large language model analyze
113
+ this dataset.''')
114
 
115
  prompt = base_prompt.format(structure_notes=data_structure_notes)
116
 
117
  if additional_notes and len(additional_notes) > 0:
118
+ prompt += "\nAdditional notes on the data:\n" + enhanced_notes
119
 
120
  messages = [gr.ChatMessage(role="user", content=prompt)]
121
  yield messages + [