Spaces:
Runtime error
Runtime error
Update app_inpaint.py
Browse files- app_inpaint.py +13 -12
app_inpaint.py
CHANGED
|
@@ -13,8 +13,19 @@ import shutil
|
|
| 13 |
import base64
|
| 14 |
import logging
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
@st.
|
| 18 |
def load_models():
|
| 19 |
#specify shortform of language you want to extract,
|
| 20 |
# I am using Spanish(es) and English(en) here by list of language ids
|
|
@@ -64,17 +75,7 @@ def file_selector(folder_path='.'):
|
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
-
|
| 68 |
-
page_title="Inpaint Me",
|
| 69 |
-
page_icon=":art:",
|
| 70 |
-
layout="wide",
|
| 71 |
-
initial_sidebar_state="expanded",
|
| 72 |
-
menu_items={
|
| 73 |
-
'Get Help': 'https://www.extremelycoolapp.com/help',
|
| 74 |
-
'Report a bug': "https://www.extremelycoolapp.com/bug",
|
| 75 |
-
'About': "# This is a header. This is an *extremely* cool app!"
|
| 76 |
-
}
|
| 77 |
-
)
|
| 78 |
|
| 79 |
|
| 80 |
st.markdown(
|
|
|
|
| 13 |
import base64
|
| 14 |
import logging
|
| 15 |
|
| 16 |
+
st.set_page_config(
|
| 17 |
+
page_title="Inpaint Me",
|
| 18 |
+
page_icon=":art:",
|
| 19 |
+
layout="wide",
|
| 20 |
+
initial_sidebar_state="expanded",
|
| 21 |
+
menu_items={
|
| 22 |
+
'Get Help': 'https://www.extremelycoolapp.com/help',
|
| 23 |
+
'Report a bug': "https://www.extremelycoolapp.com/bug",
|
| 24 |
+
'About': "# This is a header. This is an *extremely* cool app!"
|
| 25 |
+
}
|
| 26 |
+
)
|
| 27 |
|
| 28 |
+
@st.cache_data(show_spinner=False, allow_output_mutation=True, suppress_st_warning=True)
|
| 29 |
def load_models():
|
| 30 |
#specify shortform of language you want to extract,
|
| 31 |
# I am using Spanish(es) and English(en) here by list of language ids
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
|
| 81 |
st.markdown(
|