drscotthawley commited on
Commit
28f8000
1 Parent(s): 3664313

added args print stuff

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -103,6 +103,12 @@ class Args:
103
  def __init__(self, **kwargs):
104
  for key, value in kwargs.items():
105
  setattr(self, key, value)
 
 
 
 
 
 
106
 
107
 
108
  @spaces.GPU
 
103
  def __init__(self, **kwargs):
104
  for key, value in kwargs.items():
105
  setattr(self, key, value)
106
+ def __repr__(self):
107
+ return f'Args({", ".join(f"{key}={value}" for key, value in self.__dict__.items())})'
108
+
109
+ def __str__(self):
110
+ return f'Args with attributes: {", ".join(f"{key}={value}" for key, value in self.__dict__.items())}'
111
+
112
 
113
 
114
  @spaces.GPU