Spaces:
Runtime error
Runtime error
Commit
·
5941228
1
Parent(s):
dd83559
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,9 @@ def download_prompt_templates():
|
|
| 56 |
if len(row) >= 2:
|
| 57 |
act = row[0].strip('"')
|
| 58 |
prompt = row[1].strip('"')
|
| 59 |
-
|
| 60 |
prompt_templates[act] = prompt
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
except requests.exceptions.RequestException as e:
|
|
@@ -70,7 +71,8 @@ def download_prompt_templates():
|
|
| 70 |
|
| 71 |
def on_prompt_template_change(prompt_template):
|
| 72 |
if not isinstance(prompt_template, str): return
|
| 73 |
-
return prompt_templates[prompt_template]
|
|
|
|
| 74 |
|
| 75 |
|
| 76 |
|
|
|
|
| 56 |
if len(row) >= 2:
|
| 57 |
act = row[0].strip('"')
|
| 58 |
prompt = row[1].strip('"')
|
| 59 |
+
description = row[2].strip('"')
|
| 60 |
prompt_templates[act] = prompt
|
| 61 |
+
description[act] = description
|
| 62 |
|
| 63 |
|
| 64 |
except requests.exceptions.RequestException as e:
|
|
|
|
| 71 |
|
| 72 |
def on_prompt_template_change(prompt_template):
|
| 73 |
if not isinstance(prompt_template, str): return
|
| 74 |
+
return prompt_templates[prompt_template], , description[prompt_template]
|
| 75 |
+
|
| 76 |
|
| 77 |
|
| 78 |
|