Spaces:
Running
Running
~sort
Browse files
app.py
CHANGED
|
@@ -25,8 +25,8 @@ def download_prompt_templates():
|
|
| 25 |
print(f"An error occurred while downloading prompt templates: {e}")
|
| 26 |
return
|
| 27 |
|
| 28 |
-
prompt_templates = dict(sorted(prompt_templates.items(), key=lambda item: item[0]))
|
| 29 |
choices = list(prompt_templates.keys())
|
|
|
|
| 30 |
return gr.update(value=choices[0], choices=choices)
|
| 31 |
|
| 32 |
def on_token_change(user_token):
|
|
|
|
| 25 |
print(f"An error occurred while downloading prompt templates: {e}")
|
| 26 |
return
|
| 27 |
|
|
|
|
| 28 |
choices = list(prompt_templates.keys())
|
| 29 |
+
choices.sort()
|
| 30 |
return gr.update(value=choices[0], choices=choices)
|
| 31 |
|
| 32 |
def on_token_change(user_token):
|