omerXfaruq commited on
Commit
d95b901
1 Parent(s): d20aa54

Return exception if raises

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ def space_builder(spaces: str, hf_token: str, username: str, space_name: str, sp
101
  else:
102
  return "The space_name is already used for the token's user"
103
  except Exception as ex:
104
- return Exception
105
 
106
 
107
  iface = gr.Interface(
 
101
  else:
102
  return "The space_name is already used for the token's user"
103
  except Exception as ex:
104
+ return Exception.__repr__()
105
 
106
 
107
  iface = gr.Interface(