Spaces:
Runtime error
Runtime error
Commit
·
937be2f
1
Parent(s):
dedc54d
test
Browse files
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import
|
| 3 |
|
| 4 |
# Load the Vicuna 7B v1.3 LMSys model and tokenizer
|
| 5 |
model_name = "lmsys/vicuna-7b-v1.3"
|
| 6 |
-
tokenizer =
|
| 7 |
-
model =
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
chatbot = gr.Chatbot()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 3 |
|
| 4 |
# Load the Vicuna 7B v1.3 LMSys model and tokenizer
|
| 5 |
model_name = "lmsys/vicuna-7b-v1.3"
|
| 6 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 7 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
chatbot = gr.Chatbot()
|