Spaces:
Running
Running
Fix urllib
Browse files
gps.py
CHANGED
@@ -97,17 +97,18 @@ def start_imei_processing(user_id, password):
|
|
97 |
logs = process_imei_batches(user_id, password)
|
98 |
return "\n".join(logs)
|
99 |
|
100 |
-
# Gradio interface with
|
101 |
iface = gr.Interface(
|
102 |
fn=start_imei_processing,
|
103 |
inputs=[
|
104 |
gr.Textbox(label="User ID (Phone Number in International Format)", type="text"),
|
105 |
gr.Textbox(label="Password (4-digit)", type="password"),
|
|
|
106 |
],
|
107 |
outputs="text",
|
108 |
title="GPS Tracker IMEI Writer",
|
109 |
description="Enter your User ID and Password to start processing IMEI numbers.",
|
110 |
-
live=
|
111 |
)
|
112 |
|
113 |
iface.launch(share=True)
|
|
|
97 |
logs = process_imei_batches(user_id, password)
|
98 |
return "\n".join(logs)
|
99 |
|
100 |
+
# Gradio interface with a submit button
|
101 |
iface = gr.Interface(
|
102 |
fn=start_imei_processing,
|
103 |
inputs=[
|
104 |
gr.Textbox(label="User ID (Phone Number in International Format)", type="text"),
|
105 |
gr.Textbox(label="Password (4-digit)", type="password"),
|
106 |
+
gr.Button("Start Processing")
|
107 |
],
|
108 |
outputs="text",
|
109 |
title="GPS Tracker IMEI Writer",
|
110 |
description="Enter your User ID and Password to start processing IMEI numbers.",
|
111 |
+
live=False # Prevent real-time execution; button click triggers processing
|
112 |
)
|
113 |
|
114 |
iface.launch(share=True)
|