ryanrwatkins commited on
Commit
0d1559c
Β·
1 Parent(s): 1c70f43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ def download_prompt_templates():
39
  if len(row) >= 2:
40
  act = row[0].strip('"')
41
  prompt = row[1].strip('"')
42
- description = row[2].strip('"')
43
  prompt_templates[act] = prompt
44
 
45
 
@@ -49,7 +49,7 @@ def download_prompt_templates():
49
 
50
  choices = list(prompt_templates.keys())
51
  choices = choices[:1] + sorted(choices[1:])
52
- return gr.update(value=choices[0], choices=choices, description=description)
53
 
54
  def on_prompt_template_change(prompt_template):
55
  if not isinstance(prompt_template, str): return
 
39
  if len(row) >= 2:
40
  act = row[0].strip('"')
41
  prompt = row[1].strip('"')
42
+ # description = row[2].strip('"')
43
  prompt_templates[act] = prompt
44
 
45
 
 
49
 
50
  choices = list(prompt_templates.keys())
51
  choices = choices[:1] + sorted(choices[1:])
52
+ return gr.update(value=choices[0], choices=choices)
53
 
54
  def on_prompt_template_change(prompt_template):
55
  if not isinstance(prompt_template, str): return