Spaces:
Sleeping
Sleeping
Commit
•
c33d018
1
Parent(s):
dc6b874
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,42 @@ from huggingface_hub import InferenceClient
|
|
4 |
"""
|
5 |
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
|
6 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
8 |
|
9 |
|
|
|
4 |
"""
|
5 |
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
|
6 |
"""
|
7 |
+
DESCRIPTION = '''
|
8 |
+
<div>
|
9 |
+
<h1 style="text-align: center;">zephyr-7b-beta</h1>
|
10 |
+
<p>This Space demonstrates the instruction-tuned model<b>zephyr-7b-beta by Hugging face</b></a>. zephyr-7b-beta is the new open 7B parameter GPT-like model fine-tuned on a mix of publicly available, synthetic datasets. Feel free to play with it, or duplicate to run privately!</p>
|
11 |
+
<p>🔎 Zephyr is a series of language models that are trained to act as helpful assistants. Zephyr-7B-β is the second model in the series, and is a fine-tuned version of mistralai/Mistral-7B-v0.1 that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO). We found that removing the in-built alignment of these datasets boosted performance on MT Bench and made the model more helpful..</p>
|
12 |
+
<p>🦕 Looking for an even more powerful model? Check out the <a href="https://huggingface.co/chat/"><b>Hugging Chat</b></a> integration for Meta Llama 3 70b</p>
|
13 |
+
</div>
|
14 |
+
'''
|
15 |
+
|
16 |
+
LICENSE = """
|
17 |
+
<p/>
|
18 |
+
---
|
19 |
+
Built with zephyr-7b-beta
|
20 |
+
"""
|
21 |
+
|
22 |
+
PLACEHOLDER = """
|
23 |
+
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
24 |
+
<img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8e75e61cc9bab22b7ce3dec85ab0e6db1da5d107/Meta_lockup_positive%20primary_RGB.jpg" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55; ">
|
25 |
+
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">zephyr-7b-beta</h1>
|
26 |
+
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Ask me anything...</p>
|
27 |
+
</div>
|
28 |
+
"""
|
29 |
+
|
30 |
+
|
31 |
+
css = """
|
32 |
+
h1 {
|
33 |
+
text-align: center;
|
34 |
+
display: block;
|
35 |
+
}
|
36 |
+
#duplicate-button {
|
37 |
+
margin: auto;
|
38 |
+
color: white;
|
39 |
+
background: #1565c0;
|
40 |
+
border-radius: 100vh;
|
41 |
+
}"""
|
42 |
+
|
43 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
44 |
|
45 |
|