Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from langchain import HuggingFaceHub, LLMChain, PromptTemplate
|
|
12 |
from langchain.memory import ConversationBufferWindowMemory
|
13 |
from langchain.chains import ConversationalRetrievalChain
|
14 |
|
15 |
-
trait_content_df=pd.read_csv('AI Personality Chart trait_content.csv')
|
16 |
trait_content_df=trait_content_df.drop(0,axis=0)
|
17 |
trait_content_df.rename(columns={'Column 1':'Question','Column 2':'Options','Column 3':'Traits','Column 4':'Content'},inplace=True)
|
18 |
trait_content_df['Title'].fillna(method='ffill',inplace=True)
|
@@ -59,7 +59,7 @@ hist_dict['generated']=["Hello ! Ask me anything about " + " π€"]
|
|
59 |
hist_dict['past'] = ["Hey ! π"]
|
60 |
|
61 |
|
62 |
-
trait_content_df_org=pd.read_csv('AI Personality Chart trait_content.csv')
|
63 |
trait_content_df_org=trait_content_df_org.drop(0,axis=0)
|
64 |
trait_content_df_org.rename(columns={'Column 1':'Question','Column 2':'Options','Column 3':'Traits','Column 4':'Content'},inplace=True)
|
65 |
|
|
|
12 |
from langchain.memory import ConversationBufferWindowMemory
|
13 |
from langchain.chains import ConversationalRetrievalChain
|
14 |
|
15 |
+
trait_content_df=pd.read_csv('AI Personality Chart trait_content (2).csv')
|
16 |
trait_content_df=trait_content_df.drop(0,axis=0)
|
17 |
trait_content_df.rename(columns={'Column 1':'Question','Column 2':'Options','Column 3':'Traits','Column 4':'Content'},inplace=True)
|
18 |
trait_content_df['Title'].fillna(method='ffill',inplace=True)
|
|
|
59 |
hist_dict['past'] = ["Hey ! π"]
|
60 |
|
61 |
|
62 |
+
trait_content_df_org=pd.read_csv('AI Personality Chart trait_content (2).csv')
|
63 |
trait_content_df_org=trait_content_df_org.drop(0,axis=0)
|
64 |
trait_content_df_org.rename(columns={'Column 1':'Question','Column 2':'Options','Column 3':'Traits','Column 4':'Content'},inplace=True)
|
65 |
|