kajila commited on
Commit
e4f9e43
·
verified ·
1 Parent(s): e082d15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -4,8 +4,6 @@ import os
4
  import uuid
5
  import json
6
  from pathlib import Path
7
- from dotenv import load_dotenv
8
-
9
  # Install dependencies if not already installed
10
  def install_packages():
11
  subprocess.check_call([sys.executable, "-m", "pip", "install", "openai"])
@@ -14,7 +12,6 @@ def install_packages():
14
  subprocess.check_call([sys.executable, "-m", "pip", "install", "chromadb"])
15
  subprocess.check_call([sys.executable, "-m", "pip", "install", "huggingface_hub"])
16
  subprocess.check_call([sys.executable, "-m", "pip", "install", "python-dotenv"])
17
-
18
  install_packages()
19
 
20
  # Import installed modules
@@ -23,6 +20,7 @@ import openai
23
  import gradio as gr
24
  from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings
25
  from langchain_community.vectorstores import Chroma
 
26
 
27
  # Load environment variables from .env file
28
  load_dotenv()
 
4
  import uuid
5
  import json
6
  from pathlib import Path
 
 
7
  # Install dependencies if not already installed
8
  def install_packages():
9
  subprocess.check_call([sys.executable, "-m", "pip", "install", "openai"])
 
12
  subprocess.check_call([sys.executable, "-m", "pip", "install", "chromadb"])
13
  subprocess.check_call([sys.executable, "-m", "pip", "install", "huggingface_hub"])
14
  subprocess.check_call([sys.executable, "-m", "pip", "install", "python-dotenv"])
 
15
  install_packages()
16
 
17
  # Import installed modules
 
20
  import gradio as gr
21
  from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings
22
  from langchain_community.vectorstores import Chroma
23
+ from dotenv import load_dotenv
24
 
25
  # Load environment variables from .env file
26
  load_dotenv()