Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
def get_connection_from_zip(zip_path: str, db_filename: str) -> sqlite3.Connection:
|
| 2 |
# Extract DB file from ZIP to disk as "temp.db"
|
| 3 |
with zipfile.ZipFile(zip_path) as z:
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import zipfile
|
| 3 |
+
import sqlite3
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
def get_connection_from_zip(zip_path: str, db_filename: str) -> sqlite3.Connection:
|
| 7 |
# Extract DB file from ZIP to disk as "temp.db"
|
| 8 |
with zipfile.ZipFile(zip_path) as z:
|