derek-thomas HF staff commited on
Commit
85c9513
1 Parent(s): f2b70d1

Adding details

Browse files
Files changed (1) hide show
  1. app.py +15 -11
app.py CHANGED
@@ -24,17 +24,8 @@ WEBHOOK_SECRET = os.getenv("HF_WEBHOOK_SECRET", 'secret')
24
 
25
  intro_md = """
26
  # Processing BORU
27
- ## Creation Details
28
- This space is triggered by a webhook for changes on
29
- [derek-thomas/dataset-creator-reddit-bestofredditorupdates](https://huggingface.co/datasets/derek-thomas/dataset-creator-reddit-bestofredditorupdates).
30
- It then takes the updates from that dataset and get embeddings and puts the results in
31
- [https://huggingface.co/datasets/derek-thomas/reddit-bestofredditorupdates-processed](https://huggingface.co/datasets/derek-thomas/reddit-bestofredditorupdates-processed)
32
-
33
- Check out the original on [Nomic](https://atlas.nomic.ai/data/derek2/boru-subreddit-neural-search/map)
34
-
35
- ## What is this for beginners?
36
- This is a space to visually search the subreddit /r/bestofredditorupdates. Have you ever been curious to search for stories
37
- that are similar to one of your favorites? This can help!
38
 
39
  - Each dot represents a post (try clicking on one)
40
  - Closer dots are similar in topic
@@ -46,6 +37,17 @@ that are similar to one of your favorites? This can help!
46
  - Filtering by date
47
  - The search can help you look by keyword
48
 
 
 
 
 
 
 
 
 
 
 
 
49
  ## Todo
50
  - Ignore the colors for now, I need to clean that up :)
51
  - I need to integrate with Nomic's semantic search
@@ -61,6 +63,8 @@ with gr.Blocks() as ui:
61
  with gr.Tab("Logs"):
62
  gr.Markdown("# Logs")
63
  output = gr.HTML(log_file_to_html_string, every=1)
 
 
64
 
65
  app = WebhooksServer(ui=ui.queue(), webhook_secret=WEBHOOK_SECRET)
66
 
 
24
 
25
  intro_md = """
26
  # Processing BORU
27
+ This is a space to visually search the subreddit [/r/bestofredditorupdates](https://www.reddit.com/r/BestofRedditorUpdates/).
28
+ Have you ever been curious to search for stories that are similar to one of your favorites? This can help!
 
 
 
 
 
 
 
 
 
29
 
30
  - Each dot represents a post (try clicking on one)
31
  - Closer dots are similar in topic
 
37
  - Filtering by date
38
  - The search can help you look by keyword
39
 
40
+ Check out the original on [Nomic](https://atlas.nomic.ai/data/derek2/boru-subreddit-neural-search/map)
41
+ """
42
+
43
+ details_md = """
44
+ # Details
45
+ ## Creation Details
46
+ This space is triggered by a webhook for changes on
47
+ [derek-thomas/dataset-creator-reddit-bestofredditorupdates](https://huggingface.co/datasets/derek-thomas/dataset-creator-reddit-bestofredditorupdates).
48
+ It then takes the updates from that dataset and get embeddings and puts the results in
49
+ [https://huggingface.co/datasets/derek-thomas/reddit-bestofredditorupdates-processed](https://huggingface.co/datasets/derek-thomas/reddit-bestofredditorupdates-processed)
50
+
51
  ## Todo
52
  - Ignore the colors for now, I need to clean that up :)
53
  - I need to integrate with Nomic's semantic search
 
63
  with gr.Tab("Logs"):
64
  gr.Markdown("# Logs")
65
  output = gr.HTML(log_file_to_html_string, every=1)
66
+ with gr.Tab("Details"):
67
+ gr.Markdown(details_md)
68
 
69
  app = WebhooksServer(ui=ui.queue(), webhook_secret=WEBHOOK_SECRET)
70