tokudai commited on
Commit
b9f05e3
1 Parent(s): 3f26959

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -84,10 +84,10 @@ def api_call_generation(instruction, knowledge, query, top_p, min_length, max_le
84
  return response
85
 
86
 
87
- def change_example(choice):
88
- choice_idx = int(choice.split()[-1]) - 1
89
- instruction, knowledge, query, instruction_type = preset_examples[choice_idx]
90
- return [gr.update(lines=1, visible=True, value=instruction), gr.update(visible=True, value=knowledge), gr.update(lines=1, visible=True, value=query), gr.update(visible=True, value=instruction_type)]
91
 
92
  def change_textbox(choice):
93
  if choice == "Chitchat":
 
84
  return response
85
 
86
 
87
+ # def change_example(choice):
88
+ # choice_idx = int(choice.split()[-1]) - 1
89
+ # instruction, knowledge, query, instruction_type = preset_examples[choice_idx]
90
+ # return [gr.update(lines=1, visible=True, value=instruction), gr.update(visible=True, value=knowledge), gr.update(lines=1, visible=True, value=query), gr.update(visible=True, value=instruction_type)]
91
 
92
  def change_textbox(choice):
93
  if choice == "Chitchat":