jedeland commited on
Commit
59b7c26
·
1 Parent(s): 1007bb1

added requirements

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
 
3
  # Load model directly
4
- from transformers import AutoModelForCausalLM, AutoTokenizer
5
 
6
  # Load the LoRA model and tokenizer
7
  tokenizer = AutoTokenizer.from_pretrained("ID2223JR/lora_model")
8
- model = AutoModelForCausalLM.from_pretrained("ID2223JR/lora_model")
9
 
10
  # Data storage
11
  ingredients_list = []
 
1
  import gradio as gr
2
 
3
  # Load model directly
4
+ from transformers import AutoModel, AutoTokenizer
5
 
6
  # Load the LoRA model and tokenizer
7
  tokenizer = AutoTokenizer.from_pretrained("ID2223JR/lora_model")
8
+ model = AutoModel.from_pretrained("ID2223JR/lora_model")
9
 
10
  # Data storage
11
  ingredients_list = []