Spaces:
Running
Running
Veronika1101
commited on
Commit
•
ec94d23
1
Parent(s):
85d031e
Update app.py
Browse files
app.py
CHANGED
@@ -153,6 +153,7 @@ def main():
|
|
153 |
st.session_state.rewrite_a = ''
|
154 |
st.session_state.rewrite_b = ''
|
155 |
st.session_state.vote_submitted = False
|
|
|
156 |
|
157 |
with st.spinner("Генерация новых рерайтов..."):
|
158 |
|
@@ -168,7 +169,9 @@ def main():
|
|
168 |
st.session_state.model_a, st.session_state.original_review)
|
169 |
st.session_state.rewrite_b = generate_rewrite_for_model(
|
170 |
st.session_state.model_b, st.session_state.original_review)
|
171 |
-
|
|
|
|
|
172 |
|
173 |
if __name__ == '__main__':
|
174 |
main()
|
|
|
153 |
st.session_state.rewrite_a = ''
|
154 |
st.session_state.rewrite_b = ''
|
155 |
st.session_state.vote_submitted = False
|
156 |
+
st.session_state.rewrites_generated = False
|
157 |
|
158 |
with st.spinner("Генерация новых рерайтов..."):
|
159 |
|
|
|
169 |
st.session_state.model_a, st.session_state.original_review)
|
170 |
st.session_state.rewrite_b = generate_rewrite_for_model(
|
171 |
st.session_state.model_b, st.session_state.original_review)
|
172 |
+
st.session_state.rewrites_generated = True
|
173 |
+
|
174 |
+
st.rerun()
|
175 |
|
176 |
if __name__ == '__main__':
|
177 |
main()
|