Update app.py
Browse files
app.py
CHANGED
|
@@ -27,20 +27,16 @@ model_links = {
|
|
| 27 |
"GPT-4": "meta-llama/Meta-Llama-3.1-70B-Instruct",
|
| 28 |
"GPT-3.5": "meta-llama/Meta-Llama-3.1-8B-Instruct",
|
| 29 |
"Meta-Llama-3-8B-Instruct": "meta-llama/Meta-Llama-3-8B-Instruct",
|
| 30 |
-
"Meta-Llama-2-7B-Chat-HF": "meta-llama/Llama-2-7b-chat-hf",
|
| 31 |
"Meta-Llama-2-13B-Chat-HF": "meta-llama/Llama-2-13b-chat-hf",
|
| 32 |
-
"
|
| 33 |
-
"
|
|
|
|
| 34 |
"Mixtral-8x7B-Instruct-v0.1": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
| 35 |
"Mistral-7B-Instruct-v0.1": "mistralai/Mistral-7B-Instruct-v0.1",
|
| 36 |
"Mistral-7B-Instruct-v0.2": "mistralai/Mistral-7B-Instruct-v0.2",
|
| 37 |
"Mistral-7B-Instruct-v0.3": "mistralai/Mistral-7B-Instruct-v0.3",
|
| 38 |
"Mixtral-8x7B-DPO": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
| 39 |
-
"Phi-3-mini-4k-instruct": "microsoft/Phi-3-mini-4k-instruct",
|
| 40 |
-
"Yi-1.5-34B-Chat": "01-ai/Yi-1.5-34B-Chat",
|
| 41 |
"Starchat2-15b-v0.1": "HuggingFaceH4/starchat2-15b-v0.1",
|
| 42 |
-
"Zephyr-7B-Beta": "HuggingFaceH4/zephyr-7b-beta",
|
| 43 |
-
"Zephyr-7B-Alpha": "HuggingFaceH4/zephyr-7b-alpha",
|
| 44 |
}
|
| 45 |
|
| 46 |
def reset_conversation():
|
|
@@ -61,8 +57,8 @@ selected_model = st.sidebar.selectbox("Выбрать модель GPT", models)
|
|
| 61 |
st.sidebar.button('Новый чат', on_click=reset_conversation) #Reset button
|
| 62 |
|
| 63 |
# Create a temperature slider
|
| 64 |
-
temp_values = st.sidebar.slider('Температура
|
| 65 |
-
st.sidebar.markdown("Температура в
|
| 66 |
st.sidebar.markdown("**Для оптимального результата рекомендуем выбирать температуру в диапазоне от 0,5 до 0,7**.")
|
| 67 |
|
| 68 |
|
|
|
|
| 27 |
"GPT-4": "meta-llama/Meta-Llama-3.1-70B-Instruct",
|
| 28 |
"GPT-3.5": "meta-llama/Meta-Llama-3.1-8B-Instruct",
|
| 29 |
"Meta-Llama-3-8B-Instruct": "meta-llama/Meta-Llama-3-8B-Instruct",
|
|
|
|
| 30 |
"Meta-Llama-2-13B-Chat-HF": "meta-llama/Llama-2-13b-chat-hf",
|
| 31 |
+
"Meta-Llama-2-7B-Chat-HF": "meta-llama/Llama-2-7b-chat-hf",
|
| 32 |
+
"Gemini-1.3-2b-it": "google/gemma-1.1-2b-it",
|
| 33 |
+
"Gemini-1.3-7b-it": "google/gemma-1.1-7b-it",
|
| 34 |
"Mixtral-8x7B-Instruct-v0.1": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
| 35 |
"Mistral-7B-Instruct-v0.1": "mistralai/Mistral-7B-Instruct-v0.1",
|
| 36 |
"Mistral-7B-Instruct-v0.2": "mistralai/Mistral-7B-Instruct-v0.2",
|
| 37 |
"Mistral-7B-Instruct-v0.3": "mistralai/Mistral-7B-Instruct-v0.3",
|
| 38 |
"Mixtral-8x7B-DPO": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
|
|
|
|
|
|
| 39 |
"Starchat2-15b-v0.1": "HuggingFaceH4/starchat2-15b-v0.1",
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
def reset_conversation():
|
|
|
|
| 57 |
st.sidebar.button('Новый чат', on_click=reset_conversation) #Reset button
|
| 58 |
|
| 59 |
# Create a temperature slider
|
| 60 |
+
temp_values = st.sidebar.slider('Температура GPT-ChatBot', 0.0, 1.0, (0.5))
|
| 61 |
+
st.sidebar.markdown("Температура в GPT-ChatBot влияет на качество и связность генерируемого текста.")
|
| 62 |
st.sidebar.markdown("**Для оптимального результата рекомендуем выбирать температуру в диапазоне от 0,5 до 0,7**.")
|
| 63 |
|
| 64 |
|