Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ def generate_files(title="Text Generation Tool", emoji="🌖", colorFrom="blue",
|
|
| 11 |
"It takes an input named `prompt` which contains a system_role, user_message, context and history. "
|
| 12 |
"It returns a text message."):
|
| 13 |
# Convert tags to a list if it's not already
|
| 14 |
-
if not isinstance(tags, list):
|
| 15 |
-
|
| 16 |
|
| 17 |
# Generate readme content
|
| 18 |
readme_content = '''## readme
|
|
@@ -23,10 +23,10 @@ def generate_files(title="Text Generation Tool", emoji="🌖", colorFrom="blue",
|
|
| 23 |
sdk: {}
|
| 24 |
sdk_version: {}
|
| 25 |
app_file: {}
|
| 26 |
-
pinned:
|
| 27 |
tags:
|
| 28 |
-
-
|
| 29 |
-
'''.format(title, emoji, colorFrom, colorTo, sdk, sdk_version, app_file
|
| 30 |
|
| 31 |
# Generate tool config JSON content
|
| 32 |
tool_config = {
|
|
|
|
| 11 |
"It takes an input named `prompt` which contains a system_role, user_message, context and history. "
|
| 12 |
"It returns a text message."):
|
| 13 |
# Convert tags to a list if it's not already
|
| 14 |
+
#if not isinstance(tags, list):
|
| 15 |
+
# tags = [tags]
|
| 16 |
|
| 17 |
# Generate readme content
|
| 18 |
readme_content = '''## readme
|
|
|
|
| 23 |
sdk: {}
|
| 24 |
sdk_version: {}
|
| 25 |
app_file: {}
|
| 26 |
+
pinned: false
|
| 27 |
tags:
|
| 28 |
+
- tool
|
| 29 |
+
'''.format(title, emoji, colorFrom, colorTo, sdk, sdk_version, app_file)
|
| 30 |
|
| 31 |
# Generate tool config JSON content
|
| 32 |
tool_config = {
|