Spaces:
Build error
Build error
CB commited on
Update streamlit_app.py
Browse files- streamlit_app.py +5 -16
streamlit_app.py
CHANGED
|
@@ -1,19 +1,8 @@
|
|
| 1 |
-
import
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
return {
|
| 7 |
-
"ver": getattr(gen, "__version__", None),
|
| 8 |
-
"file": getattr(gen, "__file__", None),
|
| 9 |
-
"has_responses": hasattr(gen, "responses"),
|
| 10 |
-
"has_GenerativeModel": hasattr(gen, "GenerativeModel"),
|
| 11 |
-
"has_generate": hasattr(gen, "generate"),
|
| 12 |
-
"python_version": sys.version,
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
if __name__ == "__main__":
|
| 16 |
-
print(env_check())
|
| 17 |
|
| 18 |
# streamlit_app.py
|
| 19 |
import os
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from diagnostics import env_check
|
| 3 |
+
|
| 4 |
+
st.header("Environment")
|
| 5 |
+
st.code(env_check())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# streamlit_app.py
|
| 8 |
import os
|