Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
|
5 |
# Replace with your model name
|
6 |
#MODEL_NAME = "ssirikon/Gemma7b-bnb-Unsloth"
|
@@ -16,6 +16,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
16 |
# Removed the unsupported argument
|
17 |
)
|
18 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
|
|
19 |
|
20 |
|
21 |
def generate_subject(email_body):
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline, AutoConfig
|
4 |
|
5 |
# Replace with your model name
|
6 |
#MODEL_NAME = "ssirikon/Gemma7b-bnb-Unsloth"
|
|
|
16 |
# Removed the unsupported argument
|
17 |
)
|
18 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
19 |
+
config = AutoConfig.from_pretrained(MODEL_NAME)
|
20 |
|
21 |
|
22 |
def generate_subject(email_body):
|