Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,9 @@
|
|
1 |
import torch
|
2 |
-
from huggingface_hub import login
|
3 |
from transformers import pipeline
|
4 |
import gradio as gr
|
5 |
|
6 |
-
# Log in to Hugging Face (this will use the token stored from huggingface-cli login)
|
7 |
-
login()
|
8 |
-
|
9 |
# Define the model ID
|
10 |
-
model_id = "
|
11 |
|
12 |
# Load the pipeline with the model
|
13 |
pipe = pipeline(
|
|
|
1 |
import torch
|
|
|
2 |
from transformers import pipeline
|
3 |
import gradio as gr
|
4 |
|
|
|
|
|
|
|
5 |
# Define the model ID
|
6 |
+
model_id = "unsloth/Llama-3.2-1B-Instruct"
|
7 |
|
8 |
# Load the pipeline with the model
|
9 |
pipe = pipeline(
|