Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,11 @@ PLACEHOLDER = """
|
|
34 |
title="Testing LLaVA-Llama3-8b with Reka's Vibe-Eval"
|
35 |
description="Evaluate <a href='https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-transformers'>LLaVA-Llama3-8B</a> on <b.REKA Vibe-Evals</b>. Click on a row in the Eval dataset and start chatting about it."
|
36 |
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
model_id = "xtuner/llava-llama-3-8b-v1_1-transformers"
|
39 |
processor = AutoProcessor.from_pretrained(model_id)
|
@@ -114,7 +119,7 @@ tmp = '''with gr.Blocks(fill_height=True, ) as demo:
|
|
114 |
chatbot=chatbot,
|
115 |
)'''
|
116 |
|
117 |
-
with gr.Blocks(fill_height=True) as demo:
|
118 |
gr.HTML(f'<h1><center>{title}</center></h1>')
|
119 |
gr.HTML(f'<center>{description}</center>')
|
120 |
with gr.Row(equal_height=True):
|
|
|
34 |
title="Testing LLaVA-Llama3-8b with Reka's Vibe-Eval"
|
35 |
description="Evaluate <a href='https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-transformers'>LLaVA-Llama3-8B</a> on <b.REKA Vibe-Evals</b>. Click on a row in the Eval dataset and start chatting about it."
|
36 |
|
37 |
+
CSS ="""
|
38 |
+
.contain { display: flex; flex-direction: column; }
|
39 |
+
#component-0 { height: 100%; }
|
40 |
+
#chatbot { flex-grow: 1; }
|
41 |
+
"""
|
42 |
|
43 |
model_id = "xtuner/llava-llama-3-8b-v1_1-transformers"
|
44 |
processor = AutoProcessor.from_pretrained(model_id)
|
|
|
119 |
chatbot=chatbot,
|
120 |
)'''
|
121 |
|
122 |
+
with gr.Blocks(fill_height=True, css=CSS) as demo:
|
123 |
gr.HTML(f'<h1><center>{title}</center></h1>')
|
124 |
gr.HTML(f'<center>{description}</center>')
|
125 |
with gr.Row(equal_height=True):
|