Spaces:
Running
Running
Use custom CSS for resource links
Browse files
app.py
CHANGED
@@ -8,10 +8,12 @@ from langchain_openai.chat_models import ChatOpenAI
|
|
8 |
try:
|
9 |
from utils import format_chat_ag_response
|
10 |
from retrieval.config import ALL_INDICES
|
|
|
11 |
from chat import run_chat
|
12 |
except ImportError:
|
13 |
from .utils import format_chat_ag_response
|
14 |
from .retrieval.config import ALL_INDICES
|
|
|
15 |
from .chat import run_chat
|
16 |
|
17 |
ROOT = os.path.dirname(os.path.abspath(__file__))
|
@@ -50,7 +52,7 @@ def execute(
|
|
50 |
|
51 |
|
52 |
def build_chat() -> Tuple[LoggedComponents, gr.Blocks]:
|
53 |
-
with gr.Blocks(theme=gr.themes.Soft(), title="Ask Candid") as demo:
|
54 |
with gr.Accordion(label="Advanced settings", open=False):
|
55 |
es_indices = gr.CheckboxGroup(
|
56 |
choices=list(ALL_INDICES),
|
|
|
8 |
try:
|
9 |
from utils import format_chat_ag_response
|
10 |
from retrieval.config import ALL_INDICES
|
11 |
+
from static.css import css_chat
|
12 |
from chat import run_chat
|
13 |
except ImportError:
|
14 |
from .utils import format_chat_ag_response
|
15 |
from .retrieval.config import ALL_INDICES
|
16 |
+
from .static.css import css_chat
|
17 |
from .chat import run_chat
|
18 |
|
19 |
ROOT = os.path.dirname(os.path.abspath(__file__))
|
|
|
52 |
|
53 |
|
54 |
def build_chat() -> Tuple[LoggedComponents, gr.Blocks]:
|
55 |
+
with gr.Blocks(theme=gr.themes.Soft(), title="Ask Candid", css=css_chat) as demo:
|
56 |
with gr.Accordion(label="Advanced settings", open=False):
|
57 |
es_indices = gr.CheckboxGroup(
|
58 |
choices=list(ALL_INDICES),
|