nazneen commited on
Commit
b0bc8a2
β€’
1 Parent(s): 754887a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,9 +10,9 @@ theme = gr.themes.Monochrome(
10
  font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
11
  )
12
 
13
-
14
  instruct_pipeline_3b = pipeline(model="tiiuae/falcon-7b-instruct", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
15
- instruct_pipeline_7b = pipeline(model="serpdotai/llama-oasst-lora-7B", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
16
  #instruct_pipeline_12b = pipeline(model="databricks/dolly-v2-12b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
17
 
18
  def generate(query, temperature, top_p, top_k, max_new_tokens):
 
10
  font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
11
  )
12
 
13
+ TOKEN = os.getenv("USER_TOKEN")
14
  instruct_pipeline_3b = pipeline(model="tiiuae/falcon-7b-instruct", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
15
+ instruct_pipeline_7b = pipeline(model="HuggingFaceH4/llama-7b-ift", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto", use_auth_token=TOKEN)
16
  #instruct_pipeline_12b = pipeline(model="databricks/dolly-v2-12b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
17
 
18
  def generate(query, temperature, top_p, top_k, max_new_tokens):