Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,19 +14,8 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
|
| 14 |
DESCRIPTION = """\
|
| 15 |
# TheraGuide 🧑⚕️
|
| 16 |
|
| 17 |
-
This Space demonstrates model [Llama-3B](meta-llama/Meta-Llama-3-8B) by Meta, a Llama
|
| 18 |
|
| 19 |
-
🔎 For more details about the Llama 2 family of models and how to use them with `transformers`, take a look [at our blog post](https://huggingface.co/blog/llama2).
|
| 20 |
-
|
| 21 |
-
🔨 Looking for an even more powerful model? Check out the [13B version](https://huggingface.co/spaces/huggingface-projects/llama-2-13b-chat) or the large [70B model demo](https://huggingface.co/spaces/ysharma/Explore_llamav2_with_TGI).
|
| 22 |
-
"""
|
| 23 |
-
|
| 24 |
-
LICENSE = """
|
| 25 |
-
<p/>
|
| 26 |
-
|
| 27 |
-
---
|
| 28 |
-
As a derivate work of [Llama-2-7b-chat](https://huggingface.co/meta-llama/Llama-2-7b-chat) by Meta,
|
| 29 |
-
this demo is governed by the original [license](https://huggingface.co/spaces/huggingface-projects/llama-2-7b-chat/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/spaces/huggingface-projects/llama-2-7b-chat/blob/main/USE_POLICY.md).
|
| 30 |
"""
|
| 31 |
|
| 32 |
if not torch.cuda.is_available():
|
|
@@ -128,16 +117,16 @@ chat_interface = gr.ChatInterface(
|
|
| 128 |
stop_btn=None,
|
| 129 |
examples=[
|
| 130 |
["Hello there! How are you doing?"],
|
| 131 |
-
["
|
| 132 |
-
["Explain
|
| 133 |
-
["
|
| 134 |
-
["
|
| 135 |
],
|
| 136 |
)
|
| 137 |
|
| 138 |
with gr.Blocks(css="style.css") as demo:
|
| 139 |
gr.Markdown(DESCRIPTION)
|
| 140 |
-
gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
|
| 141 |
chat_interface.render()
|
| 142 |
gr.Markdown(LICENSE)
|
| 143 |
|
|
|
|
| 14 |
DESCRIPTION = """\
|
| 15 |
# TheraGuide 🧑⚕️
|
| 16 |
|
| 17 |
+
This Space demonstrates model [Llama-3B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) by Meta, a Llama 3 model with 8B parameters fine-tuned to be a therapist right on your browser. 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).
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
"""
|
| 20 |
|
| 21 |
if not torch.cuda.is_available():
|
|
|
|
| 117 |
stop_btn=None,
|
| 118 |
examples=[
|
| 119 |
["Hello there! How are you doing?"],
|
| 120 |
+
["I feel uncertain about the future?"],
|
| 121 |
+
["Explain what could be underlying reasons of not being attentive?"],
|
| 122 |
+
["I feel unhappy."],
|
| 123 |
+
["Are you very much reliable than real therapists?"],
|
| 124 |
],
|
| 125 |
)
|
| 126 |
|
| 127 |
with gr.Blocks(css="style.css") as demo:
|
| 128 |
gr.Markdown(DESCRIPTION)
|
| 129 |
+
#gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
|
| 130 |
chat_interface.render()
|
| 131 |
gr.Markdown(LICENSE)
|
| 132 |
|