Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -276,7 +276,7 @@ def simulate_facebook_view(video_id: str, proxy: str):
|
|
276 |
"X-Real-IP": fake_ipv4
|
277 |
}
|
278 |
try:
|
279 |
-
view_url = f"https://www.facebook.com/
|
280 |
response = requests.get(view_url, headers=headers, proxies=proxies)
|
281 |
except Exception as e:
|
282 |
print(f"Error in simulate_facebook_view: {e}")
|
@@ -390,9 +390,9 @@ gr.Interface(
|
|
390 |
inputs=[
|
391 |
gr.Textbox(label="URL"),
|
392 |
gr.Dropdown(choices=["instagram", "tiktok", "youtube", "facebook", "twitch", "spotify"], label="Platform"),
|
393 |
-
gr.Slider(minimum=1, maximum=1000,
|
394 |
-
gr.Slider(minimum=1, maximum=60,
|
395 |
-
gr.Slider(minimum=1, maximum=10,
|
396 |
],
|
397 |
outputs=gr.Textbox(label="Output")
|
398 |
).launch()
|
|
|
276 |
"X-Real-IP": fake_ipv4
|
277 |
}
|
278 |
try:
|
279 |
+
view_url = f"https://www.facebook.com/{video_id}"
|
280 |
response = requests.get(view_url, headers=headers, proxies=proxies)
|
281 |
except Exception as e:
|
282 |
print(f"Error in simulate_facebook_view: {e}")
|
|
|
390 |
inputs=[
|
391 |
gr.Textbox(label="URL"),
|
392 |
gr.Dropdown(choices=["instagram", "tiktok", "youtube", "facebook", "twitch", "spotify"], label="Platform"),
|
393 |
+
gr.Slider(minimum=1, maximum=1000, label="Count"),
|
394 |
+
gr.Slider(minimum=1, maximum=60, label="Delay (seconds)"),
|
395 |
+
gr.Slider(minimum=1, maximum=10, label="Parallel Processes")
|
396 |
],
|
397 |
outputs=gr.Textbox(label="Output")
|
398 |
).launch()
|