summaryrefslogtreecommitdiff
path: root/rag/ui.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-04-09 01:06:26 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-04-09 01:06:26 +0200
commite09f5ff897543a93f561af68e3173050b1fe4b45 (patch)
tree47b2047eb0071f782e77ae030a97edbd17f47785 /rag/ui.py
parent73a4adb6d4161ea222ed1ba56413571892da73d6 (diff)
Fix import order
Diffstat (limited to 'rag/ui.py')
-rw-r--r--rag/ui.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/rag/ui.py b/rag/ui.py
index 18e6bd1..2ca553b 100644
--- a/rag/ui.py
+++ b/rag/ui.py
@@ -1,13 +1,11 @@
import streamlit as st
-
+from dotenv import load_dotenv
from langchain_community.document_loaders.blob_loaders import Blob
-from dotenv import load_dotenv
-from rag.generator import get_generator, MODELS
+from rag.generator import MODELS, get_generator
from rag.generator.prompt import Prompt
from rag.retriever.retriever import Retriever
-
if __name__ == "__main__":
load_dotenv()
retriever = Retriever()