nekhal commited on
Commit
3fd22bd
·
verified ·
1 Parent(s): 3ee1eb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from langchain.memory import ConversationBufferMemory
8
  HUGGINGFACEHUB_API_TOKEN = os.getenv('HUGGINGFACEHUB_API_TOKEN')
9
 
10
  llm = HuggingFaceHub(
11
- repo_id="meta-llama/Llama-3.1-8B-Instruct", # Make sure this model repo is inference-enabled and accessible
12
  model_kwargs={"temperature": 0.5, "max_new_tokens": 512} # 'max_length' replaced with 'max_new_tokens' (recommended)
13
  )
14
  template = """You are a tech-savvy computer science student who spends countless hours coding, building apps, and keeping up with the latest tech trends. You enjoy discussing programming languages, AI, and gadgets and are always ready to troubleshoot tech-related problems.
 
8
  HUGGINGFACEHUB_API_TOKEN = os.getenv('HUGGINGFACEHUB_API_TOKEN')
9
 
10
  llm = HuggingFaceHub(
11
+ repo_id="tiiuae/falcon-7b-instruct", # Make sure this model repo is inference-enabled and accessible
12
  model_kwargs={"temperature": 0.5, "max_new_tokens": 512} # 'max_length' replaced with 'max_new_tokens' (recommended)
13
  )
14
  template = """You are a tech-savvy computer science student who spends countless hours coding, building apps, and keeping up with the latest tech trends. You enjoy discussing programming languages, AI, and gadgets and are always ready to troubleshoot tech-related problems.