AlanFeder commited on
Commit
5c01590
·
verified ·
1 Parent(s): 5890334

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -3,21 +3,8 @@ import sys
3
 
4
  from shiny.express import input, ui
5
 
6
- # Get the directory of the current script
7
- current_dir = os.path.dirname(__file__)
8
 
9
- # Move up to the parent directory and then to the cousin folder
10
- cousin_folder = os.path.join(current_dir, "..", "b1_rag_fns")
11
-
12
- # Add cousin folder to sys.path so it can be imported
13
- sys.path.append(os.path.abspath(cousin_folder))
14
-
15
- from b1_all_rag_fns import do_rag
16
- from dotenv import load_dotenv
17
-
18
- is_env = load_dotenv()
19
-
20
- oai_api_key = os.getenv("OPENAI_API_KEY")
21
  ui.page_opts(
22
  title="Use Shiny to Run RAG on the previous R/Gov Talks",
23
  fillable=True,
 
3
 
4
  from shiny.express import input, ui
5
 
6
+ from all_rag_fns import do_rag
 
7
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  ui.page_opts(
9
  title="Use Shiny to Run RAG on the previous R/Gov Talks",
10
  fillable=True,