Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,9 @@ import subprocess
|
|
5 |
from clarifai.rest import ClarifaiApp
|
6 |
|
7 |
|
8 |
-
|
|
|
|
|
9 |
# Initialize InstaPy
|
10 |
session = InstaPy(username="FARIDDD1230909", password="f1309D1309")
|
11 |
|
@@ -35,11 +37,7 @@ def run_instagram_bot():
|
|
35 |
# Wait for 1 minute before the next iteration
|
36 |
time.sleep(60)
|
37 |
|
38 |
-
|
39 |
-
def trigger_instagram_bot():
|
40 |
-
# Run the extended Instagram bot script
|
41 |
-
subprocess.Popen(["python", "instagram_bot_combined.py"])
|
42 |
-
|
43 |
return "Instagram bot started! It will like stories, leave comments, gain followers, and run every minute."
|
44 |
|
45 |
|
@@ -51,5 +49,4 @@ iface = gr.Interface(
|
|
51 |
description="Click the button to start the extended bot!",
|
52 |
)
|
53 |
|
54 |
-
|
55 |
-
iface.launch()
|
|
|
5 |
from clarifai.rest import ClarifaiApp
|
6 |
|
7 |
|
8 |
+
|
9 |
+
def trigger_instagram_bot():
|
10 |
+
# Run the extended Instagram bot script
|
11 |
# Initialize InstaPy
|
12 |
session = InstaPy(username="FARIDDD1230909", password="f1309D1309")
|
13 |
|
|
|
37 |
# Wait for 1 minute before the next iteration
|
38 |
time.sleep(60)
|
39 |
|
40 |
+
|
|
|
|
|
|
|
|
|
41 |
return "Instagram bot started! It will like stories, leave comments, gain followers, and run every minute."
|
42 |
|
43 |
|
|
|
49 |
description="Click the button to start the extended bot!",
|
50 |
)
|
51 |
|
52 |
+
iface.launch()
|
|