Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
89 |
-
|
90 |
-
|
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":
|