JoaquinVanschoren commited on
Commit
949679e
Β·
1 Parent(s): fe8e144

updated guidelines

Browse files
Files changed (4) hide show
  1. .DS_Store +0 -0
  2. app.py +9 -1
  3. static/.DS_Store +0 -0
  4. static/logo.png +0 -0
.DS_Store ADDED
Binary file (6.15 kB). View file
 
app.py CHANGED
@@ -4,6 +4,12 @@ import time
4
  import traceback
5
  from validation import validate_json, validate_croissant, validate_records
6
  import requests
 
 
 
 
 
 
7
 
8
  def process_file(file):
9
  results = []
@@ -29,8 +35,10 @@ def process_file(file):
29
  return results
30
 
31
  def create_ui():
 
 
32
  with gr.Blocks(theme=gr.themes.Soft()) as app:
33
- gr.Markdown("""<p align="center"><img src="https://upload.wikimedia.org/wikipedia/en/0/08/Logo_for_Conference_on_Neural_Information_Processing_Systems.svg" alt="NeurIPS Logo" width="400"/></p>""")
34
  gr.Markdown("# πŸ”ŽπŸ₯ Croissant JSON-LD Validator for NeurIPS")
35
  gr.Markdown("""
36
  Upload your Croissant JSON-LD file or enter a URL to validate if it meets the requirements for NeurIPS submission. <a href="https://blog.neurips.cc/2025/03/10/neurips-datasets-benchmarks-raising-the-bar-for-dataset-submissions/">Read more about why this is required.</a>.
 
4
  import traceback
5
  from validation import validate_json, validate_croissant, validate_records
6
  import requests
7
+ import base64
8
+
9
+ def image_to_base64(path):
10
+ with open(path, "rb") as f:
11
+ encoded = base64.b64encode(f.read()).decode()
12
+ return f"data:image/jpeg;base64,{encoded}"
13
 
14
  def process_file(file):
15
  results = []
 
35
  return results
36
 
37
  def create_ui():
38
+ img_src = image_to_base64("static/logo.png")
39
+
40
  with gr.Blocks(theme=gr.themes.Soft()) as app:
41
+ gr.Markdown(f"""<p align="center"><img src="{img_src}" alt="NeurIPS Logo" width="400"/></p>""")
42
  gr.Markdown("# πŸ”ŽπŸ₯ Croissant JSON-LD Validator for NeurIPS")
43
  gr.Markdown("""
44
  Upload your Croissant JSON-LD file or enter a URL to validate if it meets the requirements for NeurIPS submission. <a href="https://blog.neurips.cc/2025/03/10/neurips-datasets-benchmarks-raising-the-bar-for-dataset-submissions/">Read more about why this is required.</a>.
static/.DS_Store ADDED
Binary file (6.15 kB). View file
 
static/logo.png ADDED