Spaces:
Runtime error
Runtime error
Ankitajadhav
commited on
Commit
•
8602f75
1
Parent(s):
2d22e33
Update app.py
Browse files
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
|
13 |
|
14 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
15 |
-
model =
|
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):
|