Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -57,7 +57,7 @@ def bot():
|
|
| 57 |
agent = create_pandas_dataframe_agent(llm, df, agent="structured_chat-zero-shot-react-description", verbose=True)
|
| 58 |
response = agent.run(user_question)
|
| 59 |
#response.headers.add('Access-Control-Allow-Origin', '*')
|
| 60 |
-
return jsonify(response+' and the columns in your data are: 'str(list(df)))
|
| 61 |
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|
|
|
|
| 57 |
agent = create_pandas_dataframe_agent(llm, df, agent="structured_chat-zero-shot-react-description", verbose=True)
|
| 58 |
response = agent.run(user_question)
|
| 59 |
#response.headers.add('Access-Control-Allow-Origin', '*')
|
| 60 |
+
return jsonify(response+' and the columns in your data are: ' + str(list(df)))
|
| 61 |
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|