LukasHug commited on
Commit
7b881ec
1 Parent(s): b95dd01

Upload 4 files

Browse files
Files changed (2) hide show
  1. gradio_web_server.py +8 -7
  2. 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
- textbox = gr.Textbox(
338
- label="Safety Risk Taxonomy",
339
- show_label=True,
340
- placeholder="Enter your safety policy here",
341
- container=True,
342
- value=default_taxonomy,
343
- lines=50)
 
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
- -e git+https://github.com/haotian-liu/LLaVA.git#egg=LLaVA[train]
 
1
+ llava-torch