Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
import
|
2 |
import gradio as gr
|
3 |
|
4 |
def get_pipe():
|
5 |
-
|
6 |
model_name = "heegyu/koalpaca-355m"
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
tokenizer.truncation_side = "right"
|
|
|
1 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
2 |
import gradio as gr
|
3 |
|
4 |
def get_pipe():
|
5 |
+
|
6 |
model_name = "heegyu/koalpaca-355m"
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
tokenizer.truncation_side = "right"
|