Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def vote_last_response(chatbot, model_selector, index_state, request: gr.Request
|
|
110 |
gr.Warning('Your feedback is already saved.')
|
111 |
return index_state
|
112 |
else:
|
113 |
-
index_state.append(
|
114 |
|
115 |
with open(get_conv_log_filename(), "a") as fout:
|
116 |
data = {
|
@@ -478,7 +478,11 @@ def build_demo(embed_mode):
|
|
478 |
|
479 |
with gr.Column(scale=8):
|
480 |
chatbot = gr.Chatbot(
|
481 |
-
elem_id="chatbot",
|
|
|
|
|
|
|
|
|
482 |
)
|
483 |
index_state = gr.State(value=[])
|
484 |
with gr.Row():
|
|
|
110 |
gr.Warning('Your feedback is already saved.')
|
111 |
return index_state
|
112 |
else:
|
113 |
+
index_state.append(vote_index)
|
114 |
|
115 |
with open(get_conv_log_filename(), "a") as fout:
|
116 |
data = {
|
|
|
478 |
|
479 |
with gr.Column(scale=8):
|
480 |
chatbot = gr.Chatbot(
|
481 |
+
elem_id="chatbot",
|
482 |
+
label="LLaVA Chatbot",
|
483 |
+
height=550,
|
484 |
+
avatar_images = (None, "https://huggingface.co/spaces/ysharma/LLaVA_v1/resolve/main/llava_logo.png"),
|
485 |
+
layout = "panel",
|
486 |
)
|
487 |
index_state = gr.State(value=[])
|
488 |
with gr.Row():
|