Anonymous commited on
Commit
a8674dd
·
1 Parent(s): 780a591

new scheme

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
41
  with gr.Row():
42
  task = gr.Dropdown(label="Task", choices=list(tasks_datasets.keys()), value=QA)
43
  language = gr.Dropdown(label="Source Language", choices=languages, value="English")
44
- zero_shot = gr.Checkbox(label="Zero-shot", value=False)
45
  config_recommendation = gr.Button("Recommend Configuration")
46
  with gr.Row():
47
  config_prompt = gr.Textbox(label="Recommended Configuration", interactive=False,
@@ -53,7 +53,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
53
  with gr.Group(elem_id="prompt-background"):
54
 
55
  instruction = gr.Textbox(label="Instruction")
56
- model_type = gr.Dropdown(label="Model Type", choices=["Multilingual", "English"], value='English')
57
  with gr.Accordion("Few Shot - Select Type of Examples ", open=False, visible=True) as few_shot:
58
  dataset = gr.Dropdown(label="Dataset", choices=tasks_datasets[QA], value="XlSum")
59
  num_examples = gr.Slider(label="Number of examples in context", minimum=1, maximum=10, step=1,
 
41
  with gr.Row():
42
  task = gr.Dropdown(label="Task", choices=list(tasks_datasets.keys()), value=QA)
43
  language = gr.Dropdown(label="Source Language", choices=languages, value="English")
44
+ model_type = gr.Dropdown(label="Model Type", choices=["Multilingual", "English"], value='English')
45
  config_recommendation = gr.Button("Recommend Configuration")
46
  with gr.Row():
47
  config_prompt = gr.Textbox(label="Recommended Configuration", interactive=False,
 
53
  with gr.Group(elem_id="prompt-background"):
54
 
55
  instruction = gr.Textbox(label="Instruction")
56
+ zero_shot = gr.Checkbox(label="Zero-shot", value=False)
57
  with gr.Accordion("Few Shot - Select Type of Examples ", open=False, visible=True) as few_shot:
58
  dataset = gr.Dropdown(label="Dataset", choices=tasks_datasets[QA], value="XlSum")
59
  num_examples = gr.Slider(label="Number of examples in context", minimum=1, maximum=10, step=1,