Spaces:
Running
Running
vrkforever
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def extract_apk_info(apk_file):
|
|
12 |
# Create a temporary file
|
13 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".apk") as temp_apk:
|
14 |
# Write the content directly as binary data
|
15 |
-
temp_apk.write(apk_file
|
16 |
temp_apk_path = temp_apk.name
|
17 |
|
18 |
a, d, dx = AnalyzeAPK(temp_apk_path)
|
@@ -61,4 +61,4 @@ iface = gr.Interface(
|
|
61 |
)
|
62 |
|
63 |
# Launch the interface
|
64 |
-
iface.launch()
|
|
|
12 |
# Create a temporary file
|
13 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".apk") as temp_apk:
|
14 |
# Write the content directly as binary data
|
15 |
+
temp_apk.write(apk_file) # Write the uploaded file content as bytes
|
16 |
temp_apk_path = temp_apk.name
|
17 |
|
18 |
a, d, dx = AnalyzeAPK(temp_apk_path)
|
|
|
61 |
)
|
62 |
|
63 |
# Launch the interface
|
64 |
+
iface.launch()
|