Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
112 |
-
|
113 |
-
|
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" +
|
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 + [
|