eronariodito commited on
Commit
cc064b3
·
verified ·
1 Parent(s): 0206377

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  # Load model directly
3
  from transformers import AutoTokenizer, AutoModelForCausalLM
 
4
 
5
  tokenizer = AutoTokenizer.from_pretrained("unsloth/Llama-3.2-1B")
6
  model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.2-1B")
 
1
  import gradio as gr
2
  # Load model directly
3
  from transformers import AutoTokenizer, AutoModelForCausalLM
4
+ import torch
5
 
6
  tokenizer = AutoTokenizer.from_pretrained("unsloth/Llama-3.2-1B")
7
  model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.2-1B")