mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
Merge pull request #197 from AymaneHrouch/update_syspath
Fix module not found: add root directory to sys path
This commit is contained in:
commit
e4aefb08db
@ -1,3 +1,8 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir))
|
||||||
|
|
||||||
import streamlit as st
|
import streamlit as st
|
||||||
import phind
|
import phind
|
||||||
|
|
||||||
@ -45,4 +50,4 @@ hide_streamlit_style = """
|
|||||||
footer {visibility: hidden;}
|
footer {visibility: hidden;}
|
||||||
</style>
|
</style>
|
||||||
"""
|
"""
|
||||||
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user