Spaces:
Runtime error
Runtime error
fix
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -2
- app.py +1 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -8,7 +8,6 @@ from llama_index.llms.openai_like import OpenAILike
|
|
| 8 |
callback_manager = CallbackManager()
|
| 9 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
| 10 |
model = "internlm2.5-latest"
|
| 11 |
-
st.set_page_config(page_title="llamaindexdemo", page_icon=" ")
|
| 12 |
api_key = st.sidebar.text_input('API Key', value='', type='password')
|
| 13 |
|
| 14 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
|
@@ -18,9 +17,9 @@ api_key = st.sidebar.text_input('API Key', value='', type='password')
|
|
| 18 |
llm =OpenAILike(model=model, api_base=api_base_url, api_key=api_key, is_chat_model=True,callback_manager=callback_manager)
|
| 19 |
|
| 20 |
|
| 21 |
-
|
| 22 |
st.set_page_config(page_title="llama_index_demo", page_icon="π¦π")
|
| 23 |
st.title("llama_index_demo")
|
|
|
|
| 24 |
|
| 25 |
# εε§ε樑ε
|
| 26 |
@st.cache_resource
|
|
|
|
| 8 |
callback_manager = CallbackManager()
|
| 9 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
| 10 |
model = "internlm2.5-latest"
|
|
|
|
| 11 |
api_key = st.sidebar.text_input('API Key', value='', type='password')
|
| 12 |
|
| 13 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
|
|
|
| 17 |
llm =OpenAILike(model=model, api_base=api_base_url, api_key=api_key, is_chat_model=True,callback_manager=callback_manager)
|
| 18 |
|
| 19 |
|
|
|
|
| 20 |
st.set_page_config(page_title="llama_index_demo", page_icon="π¦π")
|
| 21 |
st.title("llama_index_demo")
|
| 22 |
+
st.set_page_config(page_title="llamaindexdemo", page_icon=" ")
|
| 23 |
|
| 24 |
# εε§ε樑ε
|
| 25 |
@st.cache_resource
|
app.py
CHANGED
|
@@ -8,7 +8,6 @@ from llama_index.llms.openai_like import OpenAILike
|
|
| 8 |
callback_manager = CallbackManager()
|
| 9 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
| 10 |
model = "internlm2.5-latest"
|
| 11 |
-
st.set_page_config(page_title="llamaindexdemo", page_icon=" ")
|
| 12 |
api_key = st.sidebar.text_input('API Key', value='', type='password')
|
| 13 |
|
| 14 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
|
@@ -18,9 +17,9 @@ api_key = st.sidebar.text_input('API Key', value='', type='password')
|
|
| 18 |
llm =OpenAILike(model=model, api_base=api_base_url, api_key=api_key, is_chat_model=True,callback_manager=callback_manager)
|
| 19 |
|
| 20 |
|
| 21 |
-
|
| 22 |
st.set_page_config(page_title="llama_index_demo", page_icon="π¦π")
|
| 23 |
st.title("llama_index_demo")
|
|
|
|
| 24 |
|
| 25 |
# εε§ε樑ε
|
| 26 |
@st.cache_resource
|
|
|
|
| 8 |
callback_manager = CallbackManager()
|
| 9 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
| 10 |
model = "internlm2.5-latest"
|
|
|
|
| 11 |
api_key = st.sidebar.text_input('API Key', value='', type='password')
|
| 12 |
|
| 13 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
|
|
|
| 17 |
llm =OpenAILike(model=model, api_base=api_base_url, api_key=api_key, is_chat_model=True,callback_manager=callback_manager)
|
| 18 |
|
| 19 |
|
|
|
|
| 20 |
st.set_page_config(page_title="llama_index_demo", page_icon="π¦π")
|
| 21 |
st.title("llama_index_demo")
|
| 22 |
+
st.set_page_config(page_title="llamaindexdemo", page_icon=" ")
|
| 23 |
|
| 24 |
# εε§ε樑ε
|
| 25 |
@st.cache_resource
|