KOkeke94 commited on
Commit
86cccfb
·
1 Parent(s): 4c9413b

✅ Final app with OpenAI routing and Hugging Face RAG agents

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ from langchain_community.vectorstores import FAISS
8
  from langchain.chains import RetrievalQA
9
  from langchain_community.llms import HuggingFacePipeline
10
  from langchain_openai import ChatOpenAI
11
- from transformers import pipeline
12
 
13
  # ✅ Load writer model and wrap it for LangChain
14
  writer_model = pipeline("text2text-generation", model="BivinSadler/llama3-finetuned-Statistics")
@@ -96,4 +96,4 @@ iface = gr.Interface(
96
  description="Routes your stats question to the right syllabus (Stat 6371, DS 7333) or uses a general statistics model (Llama3)."
97
  )
98
 
99
- iface.launch()
 
8
  from langchain.chains import RetrievalQA
9
  from langchain_community.llms import HuggingFacePipeline
10
  from langchain_openai import ChatOpenAI
11
+ from transformers.pipelines import pipeline
12
 
13
  # ✅ Load writer model and wrap it for LangChain
14
  writer_model = pipeline("text2text-generation", model="BivinSadler/llama3-finetuned-Statistics")
 
96
  description="Routes your stats question to the right syllabus (Stat 6371, DS 7333) or uses a general statistics model (Llama3)."
97
  )
98
 
99
+ iface.launch()