aaronb commited on
Commit
0f4611e
1 Parent(s): a2278cb
Files changed (1) hide show
  1. gradio_app.py +2 -2
gradio_app.py CHANGED
@@ -9,7 +9,7 @@ import uuid
9
  from drag_gan import drag_gan, stylegan2
10
  from stylegan2.inversion import inverse_image
11
 
12
- device = 'cpu'
13
 
14
 
15
  SIZE_TO_CLICK_SIZE = {
@@ -337,7 +337,7 @@ def main():
337
  if __name__ == '__main__':
338
  import argparse
339
  parser = argparse.ArgumentParser()
340
- parser.add_argument('--device', default='cuda')
341
  parser.add_argument('--share', action='store_true')
342
  parser.add_argument('-p', '--port', default=None)
343
  parser.add_argument('--ip', default=None)
 
9
  from drag_gan import drag_gan, stylegan2
10
  from stylegan2.inversion import inverse_image
11
 
12
+ device = 'cuda'
13
 
14
 
15
  SIZE_TO_CLICK_SIZE = {
 
337
  if __name__ == '__main__':
338
  import argparse
339
  parser = argparse.ArgumentParser()
340
+ parser.add_argument('--device', default='cpu')
341
  parser.add_argument('--share', action='store_true')
342
  parser.add_argument('-p', '--port', default=None)
343
  parser.add_argument('--ip', default=None)