Spaces:
Build error
Build error
logs
#3
by
yashvii
- opened
- gradio_demo/app.py +4 -0
gradio_demo/app.py
CHANGED
@@ -251,8 +251,12 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
|
|
251 |
if not os.path.isfile(csv_file_path):
|
252 |
df.to_csv(csv_file_path, index=False)
|
253 |
else:
|
|
|
|
|
254 |
df.to_csv(csv_file_path, mode='a', header=False, index=False)
|
255 |
print("writing to csv",csv_file_path)
|
|
|
|
|
256 |
|
257 |
gr.Info("Thankyou!! Your avatar is on the way to your inbox")
|
258 |
|
|
|
251 |
if not os.path.isfile(csv_file_path):
|
252 |
df.to_csv(csv_file_path, index=False)
|
253 |
else:
|
254 |
+
df_check = pd.read_csv(csv_file_path)
|
255 |
+
print(f"CSV content before append:\n{df_check}")
|
256 |
df.to_csv(csv_file_path, mode='a', header=False, index=False)
|
257 |
print("writing to csv",csv_file_path)
|
258 |
+
df_check = pd.read_csv(csv_file_path)
|
259 |
+
print(f"CSV content before append:\n{df_check}")
|
260 |
|
261 |
gr.Info("Thankyou!! Your avatar is on the way to your inbox")
|
262 |
|