Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ model1 = AutoModelForCausalLM.from_pretrained(MODEL_LIST[1]).to(device)
|
|
44 |
tokenizer2 = AutoTokenizer.from_pretrained(MODEL_LIST[2])
|
45 |
model2 = AutoModelForCausalLM.from_pretrained(MODEL_LIST[2]).to(device)
|
46 |
|
47 |
-
|
48 |
def stream_chat(
|
49 |
message: str,
|
50 |
history: list,
|
|
|
44 |
tokenizer2 = AutoTokenizer.from_pretrained(MODEL_LIST[2])
|
45 |
model2 = AutoModelForCausalLM.from_pretrained(MODEL_LIST[2]).to(device)
|
46 |
|
47 |
+
@spaces.GPU()
|
48 |
def stream_chat(
|
49 |
message: str,
|
50 |
history: list,
|