aiTOYAMA commited on
Commit
f8e266b
·
verified ·
1 Parent(s): 975354a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -49,15 +49,6 @@ llm = ChatGoogleGenerativeAI(
49
  # ==================================================
50
 
51
  def rebuild_database():
52
-
53
- snapshot_download(
54
- repo_id="yamaaa0/papers",
55
- repo_type="dataset",
56
- local_dir=PAPER_DIR
57
- )
58
-
59
- if not os.path.exists(DB_DIR):
60
- rebuild_database()
61
 
62
  pdf_files = [
63
  os.path.join(PAPER_DIR, f)
@@ -198,6 +189,15 @@ def search_method(question):
198
  # 実験検索
199
  # ==================================================
200
 
 
 
 
 
 
 
 
 
 
201
  def search_experiment(question):
202
 
203
  db = get_db()
 
49
  # ==================================================
50
 
51
  def rebuild_database():
 
 
 
 
 
 
 
 
 
52
 
53
  pdf_files = [
54
  os.path.join(PAPER_DIR, f)
 
189
  # 実験検索
190
  # ==================================================
191
 
192
+ snapshot_download(
193
+ repo_id="aiTOYAMA/papers",
194
+ repo_type="dataset",
195
+ local_dir=PAPER_DIR
196
+ )
197
+
198
+ if not os.path.exists(DB_DIR):
199
+ print(rebuild_database())
200
+
201
  def search_experiment(question):
202
 
203
  db = get_db()