Spaces:
Runtime error
Runtime error
d.tsimerman
commited on
Commit
•
d878c80
1
Parent(s):
b1afa16
fix context
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import transformers
|
|
4 |
import torch
|
5 |
from typing import List, Dict
|
6 |
|
7 |
-
st.
|
8 |
model_name = st.selectbox(
|
9 |
'Выберите модель',
|
10 |
('tinkoff-ai/crossencoder-tiny', 'tinkoff-ai/crossencoder-medium', 'tinkoff-ai/crossencoder-large')
|
@@ -20,9 +20,9 @@ context_2 = 'Здарова'
|
|
20 |
context_1 = 'Ну рассказывай, как у тебя дела?'
|
21 |
|
22 |
st.markdown('👱🏻♀️ **Настя**: ' + context_3)
|
23 |
-
st.markdown('🤖 **Диалоговый
|
24 |
st.markdown('👱🏻♀️ **Настя**: ' + context_1)
|
25 |
-
response = st.text_input('🤖
|
26 |
sample = {
|
27 |
'context_3': context_3,
|
28 |
'context_2': context_2,
|
4 |
import torch
|
5 |
from typing import List, Dict
|
6 |
|
7 |
+
st.subheader('Эта демонстрация позволяет поэксперементировать с моделями, которые оценивают, насколько подходит предлагаемый ответ к контексту диалога')
|
8 |
model_name = st.selectbox(
|
9 |
'Выберите модель',
|
10 |
('tinkoff-ai/crossencoder-tiny', 'tinkoff-ai/crossencoder-medium', 'tinkoff-ai/crossencoder-large')
|
20 |
context_1 = 'Ну рассказывай, как у тебя дела?'
|
21 |
|
22 |
st.markdown('👱🏻♀️ **Настя**: ' + context_3)
|
23 |
+
st.markdown('🤖 **Диалоговый агент**: ' + context_2)
|
24 |
st.markdown('👱🏻♀️ **Настя**: ' + context_1)
|
25 |
+
response = st.text_input('🤖 Диалоговый агент:', 'Норм')
|
26 |
sample = {
|
27 |
'context_3': context_3,
|
28 |
'context_2': context_2,
|