Ankitajadhav commited on
Commit
8602f75
1 Parent(s): 2d22e33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,10 +9,10 @@ import chromadb
9
  from datasets import load_dataset
10
  # from transformers import AutoModelForCausalLM, AutoTokenizer
11
  import gradio as gr
12
- from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
13
 
14
- tokenizer = AutoTokenizer.from_pretrained("merve/chatgpt-prompt-generator-v12")
15
- model = AutoModelForSeq2SeqLM.from_pretrained("merve/chatgpt-prompt-generator-v12")
16
 
17
  # Function to clear the cache
18
  def clear_cache(model_name):
 
9
  from datasets import load_dataset
10
  # from transformers import AutoModelForCausalLM, AutoTokenizer
11
  import gradio as gr
12
+ from transformers import AutoModelForCausalLM, AutoTokenizer
13
 
14
+ tokenizer = AutoTokenizer.from_pretrained("Amitesh007/text_generation-finetuned-gpt2")
15
+ model = AutoModelForCausalLM.from_pretrained("Amitesh007/text_generation-finetuned-gpt2")
16
 
17
  # Function to clear the cache
18
  def clear_cache(model_name):