Commit
•
99dbf0f
1
Parent(s):
93595da
Fixing test vars
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from rich.syntax import Syntax
|
|
7 |
|
8 |
proj_dir = Path(__name__).parent
|
9 |
|
10 |
-
subreddit =
|
11 |
-
username =
|
12 |
dataset_name = f"{username}/dataset-creator-{subreddit}"
|
13 |
|
14 |
|
@@ -34,7 +34,7 @@ As shown below this space pulls data from pushshift.io, processes it, and puts i
|
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown(markdown)
|
37 |
-
gr.Image(proj_dir/'media'/'reddit_scraper.drawio.png')
|
38 |
output = gr.HTML(log_file_to_html_string, every=1)
|
39 |
demo.load(None,
|
40 |
_js="""
|
|
|
7 |
|
8 |
proj_dir = Path(__name__).parent
|
9 |
|
10 |
+
subreddit = os.environ["SUBREDDIT"]
|
11 |
+
username = os.environ["USERNAME"]
|
12 |
dataset_name = f"{username}/dataset-creator-{subreddit}"
|
13 |
|
14 |
|
|
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown(markdown)
|
37 |
+
gr.Image(proj_dir / 'media' / 'reddit_scraper.drawio.png')
|
38 |
output = gr.HTML(log_file_to_html_string, every=1)
|
39 |
demo.load(None,
|
40 |
_js="""
|