Chris4K commited on
Commit
034062f
·
verified ·
1 Parent(s): 03b4c35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- tags = [tags]
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, str(pinned), tags[0])
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 = {