vrkforever commited on
Commit
32eb707
·
verified ·
1 Parent(s): 1d65809

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.read()) # Read the uploaded file content
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()