Update src/streamlit_app.py
Browse files- src/streamlit_app.py +8 -0
src/streamlit_app.py
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from PIL import Image
|
| 3 |
import numpy as np
|
|
|
|
| 1 |
+
import asyncio
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
if sys.platform.startswith('linux') and sys.version_info >= (3, 8):
|
| 5 |
+
try:
|
| 6 |
+
asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
|
| 7 |
+
except Exception:
|
| 8 |
+
pass
|
| 9 |
import streamlit as st
|
| 10 |
from PIL import Image
|
| 11 |
import numpy as np
|