Spaces:
Runtime error
Runtime error
updated query params clear
Browse files
utils.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from PIL import Image
|
2 |
from io import BytesIO
|
3 |
import base64
|
|
|
4 |
import streamlit as st
|
5 |
|
6 |
|
@@ -57,7 +58,8 @@ def undo():
|
|
57 |
st.rerun()
|
58 |
|
59 |
def restart():
|
|
|
60 |
st.session_state.messages = []
|
61 |
st.session_state.cost = []
|
62 |
-
|
63 |
clear_uploader()
|
|
|
1 |
from PIL import Image
|
2 |
from io import BytesIO
|
3 |
import base64
|
4 |
+
import time
|
5 |
import streamlit as st
|
6 |
|
7 |
|
|
|
58 |
st.rerun()
|
59 |
|
60 |
def restart():
|
61 |
+
st.query_params.clear()
|
62 |
st.session_state.messages = []
|
63 |
st.session_state.cost = []
|
64 |
+
time.sleep(0.2)
|
65 |
clear_uploader()
|