Spaces:
Build error
Build error
timer update
Browse files- app.py +3 -6
- pages/kdnv_model.py +2 -2
app.py
CHANGED
|
@@ -6,16 +6,13 @@ st.divider()
|
|
| 6 |
|
| 7 |
col1, col2, col3 = st.columns(3)
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
# st.page_link('pages/chernyshov_learning.py', label='Обучение', icon='💀')
|
| 12 |
|
| 13 |
with col2:
|
| 14 |
st.page_link('pages/natasha_model.py', label='Токсикметр Наташи', icon='🤬')
|
| 15 |
-
# st.page_link('pages/bond_learning.py', label='Обучение', icon='ℹ️')
|
| 16 |
|
| 17 |
with col3:
|
| 18 |
-
st.page_link('pages/kdnv_model.py', label='Ночной собутыльник
|
| 19 |
-
st.page_link('pages/kudinov_films.py', label='Оценщик фильмов Серёжи', icon='🎥')
|
| 20 |
|
| 21 |
st.divider()
|
|
|
|
| 6 |
|
| 7 |
col1, col2, col3 = st.columns(3)
|
| 8 |
|
| 9 |
+
with col1:
|
| 10 |
+
st.page_link('pages/kudinov_films.py', label='Оценщик фильмов', icon='🎥')
|
|
|
|
| 11 |
|
| 12 |
with col2:
|
| 13 |
st.page_link('pages/natasha_model.py', label='Токсикметр Наташи', icon='🤬')
|
|
|
|
| 14 |
|
| 15 |
with col3:
|
| 16 |
+
st.page_link('pages/kdnv_model.py', label='Ночной собутыльник', icon='🍻')
|
|
|
|
| 17 |
|
| 18 |
st.divider()
|
pages/kdnv_model.py
CHANGED
|
@@ -46,7 +46,7 @@ with st.form(key='Промт'):
|
|
| 46 |
with col[1]:
|
| 47 |
num_beams = st.slider("Глубина мысли", 0.1, 1., 0.5)
|
| 48 |
with col[2]:
|
| 49 |
-
temperature = st.slider("Связность речи", 0.1, 0.
|
| 50 |
with col[3]:
|
| 51 |
top_p = st.slider("Уровень опьянения", 0.1, 1.0, 0.7)
|
| 52 |
|
|
@@ -54,5 +54,5 @@ with st.form(key='Промт'):
|
|
| 54 |
|
| 55 |
if submit:
|
| 56 |
if prompt:
|
| 57 |
-
pred = predict(prompt, max_len=max_len, num_beams=int(num_beams * 20), temperature=(1-temperature) * 5, top_p=top_p)
|
| 58 |
st.write(pred)
|
|
|
|
| 46 |
with col[1]:
|
| 47 |
num_beams = st.slider("Глубина мысли", 0.1, 1., 0.5)
|
| 48 |
with col[2]:
|
| 49 |
+
temperature = st.slider("Связность речи", 0.1, 0.1, 0.35)
|
| 50 |
with col[3]:
|
| 51 |
top_p = st.slider("Уровень опьянения", 0.1, 1.0, 0.7)
|
| 52 |
|
|
|
|
| 54 |
|
| 55 |
if submit:
|
| 56 |
if prompt:
|
| 57 |
+
pred = predict(prompt, max_len=max_len, num_beams=int(num_beams * 20), temperature=(1.01-temperature) * 5, top_p=top_p)
|
| 58 |
st.write(pred)
|