Kyudan commited on
Commit
624dfff
โ€ข
1 Parent(s): cf8f2e7
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from langchain_community.embeddings import HuggingFaceEmbeddings
3
  from langchain_community.vectorstores import FAISS
4
  from openai import OpenAI
5
- from translate import translate_ko_to_en
6
 
7
  YOUR_OPENAI_API_KEY = "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"
8
  # ์ž„๋ฒ ๋”ฉ ๋ชจ๋ธ ๋กœ๋“œ
@@ -26,7 +26,7 @@ def chatbot(input_question):
26
  basic_docs = retriever.invoke(input_question)
27
  eng_docs = retriever.invoke(eng)
28
  basic_docs = list(set().union(eng_docs,basic_docs))
29
-
30
  print(f"basic docs: {basic_docs}")
31
 
32
  context = "\n".join([doc.page_content for doc in basic_docs])
 
2
  from langchain_community.embeddings import HuggingFaceEmbeddings
3
  from langchain_community.vectorstores import FAISS
4
  from openai import OpenAI
5
+ from translate_utils import translate_ko_to_en
6
 
7
  YOUR_OPENAI_API_KEY = "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"
8
  # ์ž„๋ฒ ๋”ฉ ๋ชจ๋ธ ๋กœ๋“œ
 
26
  basic_docs = retriever.invoke(input_question)
27
  eng_docs = retriever.invoke(eng)
28
  basic_docs = list(set().union(eng_docs,basic_docs))
29
+
30
  print(f"basic docs: {basic_docs}")
31
 
32
  context = "\n".join([doc.page_content for doc in basic_docs])
translate.py โ†’ translate_utils.py RENAMED
File without changes