Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
app.py
CHANGED
@@ -1,4 +1,12 @@
|
|
1 |
import praw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
# Reddit API credentials
|
4 |
print("Initializing Reddit instance...")
|
|
|
1 |
import praw
|
2 |
+
import os
|
3 |
+
|
4 |
+
|
5 |
+
client_id = os.getenv('CLIENT_ID')
|
6 |
+
client_secret = os.getenv('CLIENT_SECRET')
|
7 |
+
user_agent = os.getenv('USER_AGENT')
|
8 |
+
username = os.getenv('REDDIT_USERNAME')
|
9 |
+
password = os.getenv('REDDIT_PASSWORD')
|
10 |
|
11 |
# Reddit API credentials
|
12 |
print("Initializing Reddit instance...")
|