ford442 commited on
Commit
e34cf57
·
verified ·
1 Parent(s): cbb6aa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -27
app.py CHANGED
@@ -62,33 +62,6 @@ STYLE_NAMES = list(styles.keys())
62
 
63
  MAX_SEED = np.iinfo(np.int64).max
64
 
65
- def upload_to_ftp(filename):
66
- try:
67
- transport = paramiko.Transport((FTP_HOST, 22))
68
- destination_path=FTP_DIR+filename
69
- transport.connect(username = FTP_USER, password = FTP_PASS)
70
- sftp = paramiko.SFTPClient.from_transport(transport)
71
- sftp.put(filename, destination_path)
72
- sftp.close()
73
- transport.close()
74
- print(f"Uploaded {filename} to FTP server")
75
- except Exception as e:
76
- print(f"FTP upload error: {e}")
77
-
78
- def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp):
79
- filename= f'rv_C_{timestamp}.txt'
80
- with open(filename, "w") as f:
81
- f.write(f"Realvis 5.0 (Tester C) \n")
82
- f.write(f"Date/time: {timestamp} \n")
83
- f.write(f"Prompt: {prompt} \n")
84
- f.write(f"Steps: {num_inference_steps} \n")
85
- f.write(f"Guidance Scale: {guidance_scale} \n")
86
- f.write(f"SPACE SETUP: \n")
87
- f.write(f"Model Scheduler: Euler_a all_custom before cuda \n")
88
- f.write(f"Model VAE: sdxl-vae-bf16\n")
89
- f.write(f"To cuda and bfloat \n")
90
- upload_to_ftp(filename)
91
-
92
  code = r'''
93
 
94
  import torch
 
62
 
63
  MAX_SEED = np.iinfo(np.int64).max
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  code = r'''
66
 
67
  import torch