Spaces:
Runtime error
Runtime error
ehristoforu
commited on
Commit
β’
6cdcd57
1
Parent(s):
7d9ad97
Update app.py
Browse files
app.py
CHANGED
@@ -9,18 +9,11 @@ HF_PUBLIC = os.environ.get("HF_PUBLIC", False)
|
|
9 |
|
10 |
DEFAULT_SYSTEM_PROMPT = "You are Zephyr. You are AI-assistant, you are polite, give only truthful information and are based on the Zephyr-7B model from HuggingFaceH4. You can communicate in different languages equally well."
|
11 |
MAX_MAX_NEW_TOKENS = 4096
|
12 |
-
DEFAULT_MAX_NEW_TOKENS =
|
13 |
MAX_INPUT_TOKEN_LENGTH = 4000
|
14 |
|
15 |
DESCRIPTION = """
|
16 |
-
#
|
17 |
-
|
18 |
-
π» This Space demonstrates model [Zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) by HuggingFaceH4, a Zephyr model with 7B parameters fine-tuned for chat instructions and specialized on many tasks. Feel free to play with it, or duplicate to run generations without a queue! If you want to run your own service, you can also [deploy the model on Inference Endpoints](https://huggingface.co/inference-endpoints).
|
19 |
-
|
20 |
-
π For more details about the Zephyr family of models and how to use them with `transformers`, take a look [at our blog post](https://huggingface.co/blog/zephyr).
|
21 |
-
|
22 |
-
ππ» Check out our [Playground](https://huggingface.co/spaces/HuggingFaceH4/zephyr-chat) for a super-fast tasks completion demo that leverages a streaming [inference endpoint](https://huggingface.co/inference-endpoints).
|
23 |
-
|
24 |
"""
|
25 |
|
26 |
def clear_and_save_textbox(message: str) -> tuple[str, str]:
|
|
|
9 |
|
10 |
DEFAULT_SYSTEM_PROMPT = "You are Zephyr. You are AI-assistant, you are polite, give only truthful information and are based on the Zephyr-7B model from HuggingFaceH4. You can communicate in different languages equally well."
|
11 |
MAX_MAX_NEW_TOKENS = 4096
|
12 |
+
DEFAULT_MAX_NEW_TOKENS = 256
|
13 |
MAX_INPUT_TOKEN_LENGTH = 4000
|
14 |
|
15 |
DESCRIPTION = """
|
16 |
+
# [Zephyr-7B](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
"""
|
18 |
|
19 |
def clear_and_save_textbox(message: str) -> tuple[str, str]:
|