Spaces:
Runtime error
Runtime error
init
Browse files- app.py +1 -1
- llava/serve/gradio_web_server.py +8 -8
app.py
CHANGED
@@ -79,7 +79,7 @@ This is a demo for UGround from *Navigating the Digital World as Humans Do: Univ
|
|
79 |
model_path = "osunlp/UGround"
|
80 |
# "osunlp/UGround"
|
81 |
bits = int(os.getenv("bits", 4))
|
82 |
-
concurrency_count = int(os.getenv("concurrency_count",
|
83 |
|
84 |
controller_proc = start_controller()
|
85 |
worker_proc = start_worker(model_path, bits=bits)
|
|
|
79 |
model_path = "osunlp/UGround"
|
80 |
# "osunlp/UGround"
|
81 |
bits = int(os.getenv("bits", 4))
|
82 |
+
concurrency_count = int(os.getenv("concurrency_count", 2))
|
83 |
|
84 |
controller_proc = start_controller()
|
85 |
worker_proc = start_worker(model_path, bits=bits)
|
llava/serve/gradio_web_server.py
CHANGED
@@ -445,14 +445,14 @@ def build_demo(embed_mode, cur_dir=None, concurrency_count=1):
|
|
445 |
|
446 |
with gr.Row():
|
447 |
with gr.Column(scale=3):
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
model_selector="llava-v1.5-UGround_v1"
|
456 |
|
457 |
imagebox = gr.Image(type="pil")
|
458 |
image_process_mode = gr.Radio(
|
|
|
445 |
|
446 |
with gr.Row():
|
447 |
with gr.Column(scale=3):
|
448 |
+
with gr.Row(elem_id="model_selector_row"):
|
449 |
+
model_selector = gr.Dropdown(
|
450 |
+
choices=models,
|
451 |
+
value=models[0] if len(models) > 0 else "",
|
452 |
+
interactive=True,
|
453 |
+
show_label=False,
|
454 |
+
container=False)
|
455 |
+
# model_selector="llava-v1.5-UGround_v1"
|
456 |
|
457 |
imagebox = gr.Image(type="pil")
|
458 |
image_process_mode = gr.Radio(
|