Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,10 @@ import pandas as pd
|
|
3 |
from chatbot.bot import QuestionAnsweringBot
|
4 |
import os
|
5 |
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
bot = QuestionAnsweringBot(chunked_data_corpus_df)
|
9 |
|
|
|
3 |
from chatbot.bot import QuestionAnsweringBot
|
4 |
import os
|
5 |
|
6 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
7 |
+
data_path = os.path.join(current_dir, 'data', 'chunked_data_corpus.csv')
|
8 |
+
|
9 |
+
chunked_data_corpus_df = pd.read_csv(data_path)
|
10 |
|
11 |
bot = QuestionAnsweringBot(chunked_data_corpus_df)
|
12 |
|