File size: 635 Bytes
c204627
 
 
 
 
 
 
1b47f15
c204627
 
 
1b47f15
c204627
 
 
1b47f15
c204627
 
 
 
1b47f15
c204627
1b47f15
c204627
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import gradio as gr
import shutil
import os

UPLOAD_FOLDER = "./uploads/"
os.makedirs(UPLOAD_FOLDER, exist_ok=True)

def upload_exe(file):
    exe_path = os.path.join(UPLOAD_FOLDER, file.name)
    shutil.copyfile(file.name, exe_path)
    
    return "File uploaded successfully. Please wait for manual processing."

# Gradio Interface
with gr.Blocks() as app:
    gr.Markdown("## EXE to APK Converter (External Processing)")
    
    with gr.Row():
        upload_button = gr.UploadButton("Upload EXE File", file_types=[".exe"])
    
    output = gr.Textbox()

    upload_button.upload(upload_exe, upload_button, output)

app.launch()