Exe-To-Apk / app.py
Peeble's picture
Update app.py
1b47f15 verified
raw
history blame contribute delete
635 Bytes
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()