captain-awesome commited on
Commit
b594097
·
verified ·
1 Parent(s): a7d84ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,12 +12,13 @@ from langchain_community.llms import CTransformers
12
  from ctransformers import AutoModelForCausalLM
13
  from langchain.llms import HuggingFaceHub
14
  from transformers import AutoTokenizer
 
15
  # from dotenv import load_dotenv
16
 
17
  # load_dotenv()
18
 
19
- def get_response(user_input):
20
- return "I dont know"
21
 
22
  def get_vector_store_from_url(url):
23
  model_name = "BAAI/bge-large-en"
 
12
  from ctransformers import AutoModelForCausalLM
13
  from langchain.llms import HuggingFaceHub
14
  from transformers import AutoTokenizer
15
+ import os
16
  # from dotenv import load_dotenv
17
 
18
  # load_dotenv()
19
 
20
+ os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.getenv("HF_KEY")
21
+
22
 
23
  def get_vector_store_from_url(url):
24
  model_name = "BAAI/bge-large-en"