Skip to content

Commit e8c961c

Browse files
committed
trying to adjust the image again
1 parent 9bcd4b7 commit e8c961c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

dockerfiles/frontend/src/app.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,16 @@ def llm_service(question, system, instruction, temperature, num_docs, max_tokens
5757

5858
def create_gradio_app():
5959
with gr.Blocks(theme=TileDBTheme()) as demo:
60-
gr.Markdown(css + "![ai-enabled-search](file/app-header.png)")
60+
css = """
61+
<style>
62+
img {
63+
display: block;
64+
margin-left: auto;
65+
margin-right: auto;
66+
}
67+
</style>
68+
"""
69+
gr.Markdown(css + "![ai-enabled-search](file/app-header.png)")
6170
with gr.Row():
6271
question = gr.Textbox(label="Question", autofocus=True)
6372
with gr.Row():
@@ -85,7 +94,7 @@ def create_gradio_app():
8594
" creativity but decrease factuality.")
8695
max_tokens = gr.Number(
8796
label="Max Tokens",
88-
minimum=10, maximum=1000, value=100,
97+
minimum=10, maximum=5000, value=100,
8998
info="The maximum number of tokens to generate.")
9099
num_docs = gr.Number(
91100
label="Number of documents to retrieve",

manifests/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
spec:
1818
containers:
1919
- name: demo-app
20-
image: chasechristensen/tiledb_demo_frontend:v1.0.2
20+
image: chasechristensen/tiledb_demo_frontend:v1.0.3
2121
ports:
2222
- name: http
2323
containerPort: 8080

0 commit comments

Comments
 (0)