Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,6 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-mamba-7b-instruct")
|
6 |
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-mamba-7b-instruct")
|
7 |
-
"""
|
8 |
-
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
9 |
-
"""
|
10 |
-
|
11 |
-
|
12 |
|
13 |
def respond(
|
14 |
message,
|
@@ -32,7 +27,7 @@ def respond(
|
|
32 |
|
33 |
for message in client.chat_completion(
|
34 |
messages,
|
35 |
-
max_tokens=
|
36 |
stream=True,
|
37 |
temperature=temperature,
|
38 |
top_p=top_p,
|
|
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-mamba-7b-instruct")
|
6 |
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-mamba-7b-instruct")
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
def respond(
|
9 |
message,
|
|
|
27 |
|
28 |
for message in client.chat_completion(
|
29 |
messages,
|
30 |
+
max_tokens=1024,
|
31 |
stream=True,
|
32 |
temperature=temperature,
|
33 |
top_p=top_p,
|