Web Explorer 这是一款使用 Web Research Retriever 的轻量级应用程序。 设置 您只需要提供几个东西。 在 settings() 函数中,您可以设置以下参数:
Web Explorer 这是一款使用 Web Research Retriever 的轻量级应用程序。 设置 您只需要提供几个东西。 在 settings() 函数中,您可以设置以下参数:
This is a lightweight app using the Web Research Retriever.
You only need to supply a few things.
In settings() function, supply:
To use st.secrets set enviorment variables in .streamlit/secrets.toml file.
Or, simply add environemnt variables and remove st.secrets:
import os
os.environ["GOOGLE_API_KEY"] = "YOUR_API_KEY"
os.environ["GOOGLE_CSE_ID"] = "YOUR_CSE_ID"
os.environ["OPENAI_API_BASE"] = "https://api.openai.com/v1"
os.environ["OPENAI_API_KEY"] = "YOUR_API_KEY"
For GOOGLE_API_KEY , you could get it from this link.
For GOOGLE_CSE_ID , you could get it from this link
streamlit run web_explorer.pyExample output:
暂无开放 Issues,或尚未同步最近议题。