omerXfaruq commited on
Commit
6677ed7
1 Parent(s): a0c8323

refactoring

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,7 +21,7 @@ class SpaceBuilder:
21
  """
22
  Splits and filters the given space_names.
23
 
24
- :param names: names
25
  :return: Name List
26
  """
27
  name_list = names.split("\n")
@@ -117,12 +117,12 @@ class SpaceBuilder:
117
  Loads given space inputs as interfaces and checks whether if they are loadable.
118
 
119
  :param names: Input space names
120
- :return: True check is successful
121
  """
122
  name_list = cls.split_space_names(names)
123
 
124
  try:
125
- # We could gather these interfaces in parallel if gradio was supporting async gathering. It will probably possible after the migration to the FastAPI is completed.
126
  interfaces = [gr.Interface.load(name) for name in name_list]
127
  except Exception as ex:
128
  print(ex)
21
  """
22
  Splits and filters the given space_names.
23
 
24
+ :param names: space names
25
  :return: Name List
26
  """
27
  name_list = names.split("\n")
117
  Loads given space inputs as interfaces and checks whether if they are loadable.
118
 
119
  :param names: Input space names
120
+ :return: True if check is successful
121
  """
122
  name_list = cls.split_space_names(names)
123
 
124
  try:
125
+ # We could gather these interfaces in parallel if gradio was supporting async gathering. It will probably be possible after the migration to the FastAPI is completed.
126
  interfaces = [gr.Interface.load(name) for name in name_list]
127
  except Exception as ex:
128
  print(ex)