Spaces:
Sleeping
Sleeping
eronariodito
commited on
Update app.py
Browse files
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")
|