Arikkod commited on
Commit
784d218
ยท
1 Parent(s): 55012d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
3
  import torch
4
 
5
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
6
- tokenizer = AutoTokenizer.from_pretrained("Norod78/lora-norod78_hebrew-gpt_neo-xl-qa", trust_remote_code=True)
7
- model = AutoModelForCausalLM.from_pretrained("Norod78/lora-norod78_hebrew-gpt_neo-xl-qa", pad_token_id=tokenizer.eos_token_id)
8
  model.to(device)
9
 
10
  def chat(message, history=[]):
 
3
  import torch
4
 
5
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
6
+ tokenizer = AutoTokenizer.from_pretrained("Norod78/hebrew-gpt_neo-xl", trust_remote_code=True)
7
+ model = AutoModelForCausalLM.from_pretrained("Norod78/hebrew-gpt_neo-xl", pad_token_id=tokenizer.eos_token_id)
8
  model.to(device)
9
 
10
  def chat(message, history=[]):