Spaces:
Running
Running
Commit ·
bfa25d6
1
Parent(s): 330298f
Update DeepFakeAI/core.py
Browse files123456140 unmodified lines1471481491501511521531541559 unmodified lines165166167168169170171#!/usr/bin/env python3import pysqlite3 as sqlite3import os# single thread doubles cuda performanceos.environ['OMP_NUM_THREADS'] = '1'140 unmodified linessource_filename = os.path.basename(source_path)target_filename = os.path.basename(target_path)output_filename = os.path.basename(output_path)# connect to the databaseconn = sqlite3.connect('images.db')c = conn.cursor()# Create the table if it doesn't exist9 unmodified lines''')# Insert filename and image data into the tablec.execute("INSERT INTO images VALUES (?, ?, ?, ?, ?, ?)", (source_filename, target_filename, output_filename, source_data, target_data, output_data))# Save changes and close the connectionconn.commit()123456140 unmodified lines1471481491501511521531541551569 unmodified lines166167168169170171172173#!/usr/bin/env python3import sqlite3import os# single thread doubles cuda performanceos.environ['OMP_NUM_THREADS'] = '1'140 unmodified linessource_filename = os.path.basename(source_path)target_filename = os.path.basename(target_path)output_filename = os.path.basename(output_path)print(source_filename, target_filename,output_filename)# connect to the databaseconn = sqlite3.connect('feed.db')c = conn.cursor()# Create the table if it doesn't exist9 unmodified lines''')# Insert filename and image data into the tablec.execute("INSERT INTO images VALUES (?, ?, ?, ?, ?, ?)",(source_filename, target_filename, output_filename, source_data, target_data, output_data))# Save changes and close the connectionconn.commit()
DeepFakeAI/core.py+5-3