Spaces:
Sleeping
Sleeping
simonzhang5429
commited on
Commit
•
12edf30
1
Parent(s):
3fb61a4
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
3 |
|
4 |
TOKENIZER_REPO = "MediaTek-Research/Breeze-7B-Instruct-v1_0"
|
5 |
tokenizer = AutoTokenizer.from_pretrained(TOKENIZER_REPO,local_files_only=False,use_fast=True,force_download=True)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
+
import torch
|
4 |
|
5 |
TOKENIZER_REPO = "MediaTek-Research/Breeze-7B-Instruct-v1_0"
|
6 |
tokenizer = AutoTokenizer.from_pretrained(TOKENIZER_REPO,local_files_only=False,use_fast=True,force_download=True)
|