Spaces:
Running
on
Zero
Running
on
Zero
Upload 4 files
Browse files- gradio_web_server.py +8 -7
- requirements.txt +1 -1
gradio_web_server.py
CHANGED
@@ -334,13 +334,14 @@ taxonomies = ["Default", "Modified w/ O1 non-violating", "Default message 3"]
|
|
334 |
|
335 |
|
336 |
def build_demo(embed_mode, cur_dir=None, concurrency_count=10):
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
|
|
344 |
with gr.Blocks(title="LlavaGuard", theme=gr.themes.Default(), css=block_css) as demo:
|
345 |
state = gr.State()
|
346 |
|
|
|
334 |
|
335 |
|
336 |
def build_demo(embed_mode, cur_dir=None, concurrency_count=10):
|
337 |
+
with gr.Accordion("Safety Risk Taxonomy", open=False) as accordion:
|
338 |
+
textbox = gr.Textbox(
|
339 |
+
label="Safety Risk Taxonomy",
|
340 |
+
show_label=True,
|
341 |
+
placeholder="Enter your safety policy here",
|
342 |
+
container=True,
|
343 |
+
value=default_taxonomy,
|
344 |
+
lines=50)
|
345 |
with gr.Blocks(title="LlavaGuard", theme=gr.themes.Default(), css=block_css) as demo:
|
346 |
state = gr.State()
|
347 |
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
-
|
|
|
1 |
+
llava-torch
|