Amirizaniani commited on
Commit
6dfb1bb
1 Parent(s): a4c75f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -285,15 +285,16 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
285
  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.")
286
  gr.Markdown("Upon completion, please provide your email address. We will compile and send the answers to you promptly.")
287
 
288
- 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")
289
- questions_textbox = gr.Textbox(label="Enter your question", placeholder="Enter your questions here...")
290
  file_upload = gr.File(label="Or You Can Click to Upload a File")
291
  relevance_slider = gr.Slider(0, 100, value=70, step=1, label="Relevance")
292
  diversity_slider = gr.Slider(0, 100, value=25, step=1, label="Diversity")
293
  email_input = gr.Textbox(label="Enter your email address", placeholder="[email protected]")
294
 
295
  submit_button = gr.Button("Submit")
296
- submit_button.click(fn=process_inputs, inputs=[llm_dropdown, questions_textbox, relevance_slider, diversity_slider, email_input], outputs="text")
 
297
 
298
 
299
 
 
285
  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.")
286
  gr.Markdown("Upon completion, please provide your email address. We will compile and send the answers to you promptly.")
287
 
288
+ llm_dropdown = gr.Dropdown(choices=["Model 1", "Model 2", "Model 3"], label="Large Language Model")
289
+ questions_textbox = gr.Textbox(label="Enter your question", placeholder="Enter your questions here...", lines=5)
290
  file_upload = gr.File(label="Or You Can Click to Upload a File")
291
  relevance_slider = gr.Slider(0, 100, value=70, step=1, label="Relevance")
292
  diversity_slider = gr.Slider(0, 100, value=25, step=1, label="Diversity")
293
  email_input = gr.Textbox(label="Enter your email address", placeholder="[email protected]")
294
 
295
  submit_button = gr.Button("Submit")
296
+ output_textbox = gr.Textbox(label="Output")
297
+ submit_button.click(fn=process_inputs, inputs=[llm_dropdown, questions_textbox, relevance_slider, diversity_slider, email_input], outputs=output_textbox)
298
 
299
 
300