Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
2 |
import modin as pd
|
3 |
import gradio as gr
|
4 |
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("KoboldAI/OPT-
|
6 |
|
7 |
-
model = AutoModelForCausalLM.from_pretrained("KoboldAI/OPT-
|
8 |
|
9 |
def chat(Prompt):
|
10 |
input_ids = tokenizer(Prompt, return_tensors="pt").input_ids
|
|
|
2 |
import modin as pd
|
3 |
import gradio as gr
|
4 |
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("KoboldAI/OPT-2.7B-Nerybus-Mix")
|
6 |
|
7 |
+
model = AutoModelForCausalLM.from_pretrained("KoboldAI/OPT-2.7B-Nerybus-Mix")
|
8 |
|
9 |
def chat(Prompt):
|
10 |
input_ids = tokenizer(Prompt, return_tensors="pt").input_ids
|