XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Fix module not found: add root directory to sys path

28a820a8
Aymane Hrouch <jo.aymane@gmail.com>
提交于

代码差异

1 个文件 +6 -1
Modified gui/streamlit_app.py +6 -1
@@ -1,3 +1,8 @@
1 import os
2 import sys
3
4 sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir))
5
1 6 import streamlit as st
2 7 import phind
3 8
@@ -45,4 +50,4 @@ hide_streamlit_style = """
45 50 footer {visibility: hidden;}
46 51 </style>
47 52 """
48 st.markdown(hide_streamlit_style, unsafe_allow_html=True)
53 st.markdown(hide_streamlit_style, unsafe_allow_html=True)