ImpactInsights commited on
Commit
d2e8961
·
verified ·
1 Parent(s): 70df6c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from transformers import pipeline, AutoTokenizer, GemmaForCasualLM
3
  import torch
4
 
5
  #Sidebar menu
@@ -26,7 +26,7 @@ if chatbot:
26
 
27
 
28
  tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-9b-it")
29
- model = GemmaForCasualLM.from_pretrained(
30
  "google/gemma-2-9b-it",
31
  device_map="auto",
32
  torch_dtype=torch.bfloat16)
 
1
  import streamlit as st
2
+ from transformers import pipeline, AutoTokenizer, AutoModelForQuestionAnswering
3
  import torch
4
 
5
  #Sidebar menu
 
26
 
27
 
28
  tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-9b-it")
29
+ model = AutoModelForQuestionAnswering.from_pretrained(
30
  "google/gemma-2-9b-it",
31
  device_map="auto",
32
  torch_dtype=torch.bfloat16)