omerXfaruq commited on
Commit
7185d63
1 Parent(s): 1ec80ac

- Add title and description to both original space, and target space.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ class SpaceBuilder:
46
  )
47
 
48
  @classmethod
49
- def create_space(cls, names: str, space_name: str, hf_token: str, title:str, description:str) -> bool:
50
  """
51
  Creates the space.
52
 
@@ -205,7 +205,7 @@ class SpaceBuilder:
205
  ):
206
  if SpaceBuilder.load_and_check_spaces(names=space_names):
207
  if SpaceBuilder.create_space(
208
- names=space_names, space_name=target_space_name, hf_token=hf_token
209
  ):
210
  return SpaceBuilder.url
211
  else:
 
46
  )
47
 
48
  @classmethod
49
+ def create_space(cls, names: str, space_name: str, hf_token: str, title: str, description: str) -> bool:
50
  """
51
  Creates the space.
52
 
 
205
  ):
206
  if SpaceBuilder.load_and_check_spaces(names=space_names):
207
  if SpaceBuilder.create_space(
208
+ names=space_names, space_name=target_space_name, hf_token=hf_token, title=interface_title, description=interface_description
209
  ):
210
  return SpaceBuilder.url
211
  else: