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