feng2022 commited on
Commit
6443665
1 Parent(s): 9670c04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -58,12 +58,9 @@ def main():
58
  # ini = "True1"
59
  #else:
60
  # ini = "False1"
61
- if torch.cuda.is_available():
62
- result = "True2"
63
- else:
64
- result = "False2"
65
- #load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
66
  #result = subprocess.check_output(['nvidia-smi'])
 
 
67
  iface = gr.Interface(
68
  fn=predict,
69
  inputs='text',
 
58
  # ini = "True1"
59
  #else:
60
  # ini = "False1"
 
 
 
 
 
61
  #result = subprocess.check_output(['nvidia-smi'])
62
+ load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
63
+
64
  iface = gr.Interface(
65
  fn=predict,
66
  inputs='text',