Spaces:
Build error
Build error
Linted code
Browse files- app.py +0 -1
- chatbot/data.py +0 -2
- chatbot/redirect.py +1 -1
app.py
CHANGED
@@ -2,7 +2,6 @@ import os
|
|
2 |
|
3 |
import streamlit as st
|
4 |
|
5 |
-
from chatbot import redirect as rd
|
6 |
from chatbot.data import download_test_data
|
7 |
from chatbot.data import load_data
|
8 |
|
|
|
2 |
|
3 |
import streamlit as st
|
4 |
|
|
|
5 |
from chatbot.data import download_test_data
|
6 |
from chatbot.data import load_data
|
7 |
|
chatbot/data.py
CHANGED
@@ -9,8 +9,6 @@ from llama_index import set_global_service_context
|
|
9 |
from llama_index.embeddings import OpenAIEmbedding
|
10 |
from llama_index.llms import AzureOpenAI
|
11 |
|
12 |
-
from chatbot import redirect as rd
|
13 |
-
|
14 |
|
15 |
@st.cache_resource(show_spinner=False)
|
16 |
def download_test_data():
|
|
|
9 |
from llama_index.embeddings import OpenAIEmbedding
|
10 |
from llama_index.llms import AzureOpenAI
|
11 |
|
|
|
|
|
12 |
|
13 |
@st.cache_resource(show_spinner=False)
|
14 |
def download_test_data():
|
chatbot/redirect.py
CHANGED
@@ -84,7 +84,7 @@ class _Redirect:
|
|
84 |
)
|
85 |
|
86 |
if self.to and (not hasattr(self.to, "text") or not hasattr(self.to, "empty")):
|
87 |
-
raise ValueError(f"'to' is not a streamlit container object")
|
88 |
|
89 |
def __enter__(self):
|
90 |
if self.st is not None:
|
|
|
84 |
)
|
85 |
|
86 |
if self.to and (not hasattr(self.to, "text") or not hasattr(self.to, "empty")):
|
87 |
+
raise ValueError(f"'to' is not a streamlit container object: {self.to}")
|
88 |
|
89 |
def __enter__(self):
|
90 |
if self.st is not None:
|