farid678 commited on
Commit
0d8fbad
1 Parent(s): 4c23117

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -5,7 +5,9 @@ import subprocess
5
  from clarifai.rest import ClarifaiApp
6
 
7
 
8
- def run_instagram_bot():
 
 
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
- if __name__ == "__main__":
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()