RabotiahovDmytro commited on
Commit
2d38ee2
·
verified ·
1 Parent(s): a6767c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -3,7 +3,10 @@ import pandas as pd
3
  from chatbot.bot import QuestionAnsweringBot
4
  import os
5
 
6
- chunked_data_corpus_df = pd.read_csv("../data/chunked_data_corpus.csv")
 
 
 
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