Amirizaniani commited on
Commit
aa242c7
1 Parent(s): 4c8b7ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -275,19 +275,19 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
275
  """)
276
 
277
  gr.Markdown("## Batch Mode Auditing LLMs")
278
- gr.Markdown("In batch auditing mode, you have the capability to probe the LLM. To begin, you must first select the LLM you wish to audit and then input the questions you intend to explore. For each question submitted, the model will generate five prompts, each accompanied by its respective answers.")
279
- gr.Markdown("To tailor the generation of these five prompts from your original question, you can adjust the relevance and diversity scores. The relevance score determines how closely the generated prompts should align with the original question, while the diversity score dictates the variance among the prompts themselves.")
280
- gr.Markdown("Upon completion, please provide your email address. We will compile and send the answers to you promptly.")
281
 
282
- llm_dropdown = gr.Dropdown([("Llama", "TheBloke/Llama-2-7B-Chat-GGML"), ("Falcon", "TheBloke/Falcon-180B-Chat-GGUF"), ("Zephyr", "TheBloke/zephyr-quiklang-3b-4K-GGUF"), ("Vicuna", "TheBloke/vicuna-33B-GGUF"), ("Claude", "TheBloke/claude2-alpaca-13B-GGUF"), ("Alpaca", "TheBloke/LeoScorpius-GreenNode-Alpaca-7B-v1-GGUF")], label="Large Language Model")
283
- questions_textbox = gr.Textbox(label="Enter your question", placeholder="Enter your questions here...")
284
- file_upload = gr.File(label="Or You Can Click to Upload a File")
285
- relevance_slider = gr.Slider(0, 100, value=70, step=1, label="Relevance")
286
- diversity_slider = gr.Slider(0, 100, value=25, step=1, label="Diversity")
287
- email_input = gr.Textbox(label="Enter your email address", placeholder="[email protected]")
288
 
289
- submit_button = gr.Button("Submit")
290
- submit_button.click(fn=process_inputs, inputs=[llm_dropdown, questions_textbox, relevance_slider, diversity_slider, email_input], outputs="text")
291
 
292
 
293
 
 
275
  """)
276
 
277
  gr.Markdown("## Batch Mode Auditing LLMs")
278
+ gr.Markdown("In batch auditing mode, you have the capability to probe the LLM. To begin, you must first select the LLM you wish to audit and then input the questions you intend to explore. For each question submitted, the model will generate five prompts, each accompanied by its respective answers.")
279
+ gr.Markdown("To tailor the generation of these five prompts from your original question, you can adjust the relevance and diversity scores. The relevance score determines how closely the generated prompts should align with the original question, while the diversity score dictates the variance among the prompts themselves.")
280
+ gr.Markdown("Upon completion, please provide your email address. We will compile and send the answers to you promptly.")
281
 
282
+ llm_dropdown = gr.Dropdown([("Llama", "TheBloke/Llama-2-7B-Chat-GGML"), ("Falcon", "TheBloke/Falcon-180B-Chat-GGUF"), ("Zephyr", "TheBloke/zephyr-quiklang-3b-4K-GGUF"), ("Vicuna", "TheBloke/vicuna-33B-GGUF"), ("Claude", "TheBloke/claude2-alpaca-13B-GGUF"), ("Alpaca", "TheBloke/LeoScorpius-GreenNode-Alpaca-7B-v1-GGUF")], label="Large Language Model")
283
+ questions_textbox = gr.Textbox(label="Enter your question", placeholder="Enter your questions here...")
284
+ file_upload = gr.File(label="Or You Can Click to Upload a File")
285
+ relevance_slider = gr.Slider(0, 100, value=70, step=1, label="Relevance")
286
+ diversity_slider = gr.Slider(0, 100, value=25, step=1, label="Diversity")
287
+ email_input = gr.Textbox(label="Enter your email address", placeholder="[email protected]")
288
 
289
+ submit_button = gr.Button("Submit")
290
+ submit_button.click(fn=process_inputs, inputs=[llm_dropdown, questions_textbox, relevance_slider, diversity_slider, email_input], outputs="text")
291
 
292
 
293