Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -462,10 +462,11 @@ with gr.Blocks() as demo:
|
|
| 462 |
with gr.Row():
|
| 463 |
with gr.Column():
|
| 464 |
chatbot = gr.Chatbot(label='ShapeLLM-Omni', elem_classes="control-height", height=500)
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
|
|
|
| 469 |
|
| 470 |
query = gr.Textbox(lines=2, label='Input')
|
| 471 |
image_input = gr.Image(visible=False, type="filepath", label="Image Input")
|
|
|
|
| 462 |
with gr.Row():
|
| 463 |
with gr.Column():
|
| 464 |
chatbot = gr.Chatbot(label='ShapeLLM-Omni', elem_classes="control-height", height=500)
|
| 465 |
+
with gr.Accordion(label="Generation Settings", open=False):
|
| 466 |
+
seed = gr.Number(value=42, label="seed", precision=0)
|
| 467 |
+
top_k = gr.Slider(label="top_k",minimum=1024,maximum=8194,value=1024,step=10)
|
| 468 |
+
top_p = gr.Slider(label="top_p",minimum=0.1,maximum=1.0,value=0.1,step=0.05)
|
| 469 |
+
temperature = gr.Slider(label="temperature",minimum=0.1,maximum=1.0,value=0.1,step=0.05)
|
| 470 |
|
| 471 |
query = gr.Textbox(lines=2, label='Input')
|
| 472 |
image_input = gr.Image(visible=False, type="filepath", label="Image Input")
|