Commit
•
32235fd
1
Parent(s):
71516f3
Adding theme and config
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def log_file_to_html_string():
|
|
16 |
return html_content
|
17 |
|
18 |
|
19 |
-
with gr.Blocks() as demo:
|
20 |
name = gr.Markdown("# Reddit Scraper")
|
21 |
output = gr.HTML(log_file_to_html_string, every=1)
|
22 |
|
|
|
16 |
return html_content
|
17 |
|
18 |
|
19 |
+
with gr.Blocks(theme='bethecloud/storj_theme') as demo:
|
20 |
name = gr.Markdown("# Reddit Scraper")
|
21 |
output = gr.HTML(log_file_to_html_string, every=1)
|
22 |
|
main.py
CHANGED
@@ -10,9 +10,10 @@ from my_logger import setup_logger
|
|
10 |
from utilities.pushshift_data import scrape_submissions_by_day, submissions_to_dataframe
|
11 |
|
12 |
# Set dataset name, path to README.md, and existing dataset details
|
13 |
-
dataset_name = "derek-thomas/askreddit_test"
|
14 |
-
dataset_readme_path = "README.md"
|
15 |
subreddit = os.environ["SUBREDDIT"]
|
|
|
|
|
|
|
16 |
|
17 |
# Authenticate with Hugging Face using an auth token
|
18 |
auth_token = os.environ["HUGGINGFACE_AUTH_TOKEN"]
|
|
|
10 |
from utilities.pushshift_data import scrape_submissions_by_day, submissions_to_dataframe
|
11 |
|
12 |
# Set dataset name, path to README.md, and existing dataset details
|
|
|
|
|
13 |
subreddit = os.environ["SUBREDDIT"]
|
14 |
+
username = os.environ["USERNAME"]
|
15 |
+
dataset_name = f"{username}/dataset-creator-{subreddit}"
|
16 |
+
dataset_readme_path = "README.md"
|
17 |
|
18 |
# Authenticate with Hugging Face using an auth token
|
19 |
auth_token = os.environ["HUGGINGFACE_AUTH_TOKEN"]
|