Spaces:
Sleeping
Sleeping
Commit
Β·
421d16c
1
Parent(s):
949679e
updated guidelines
Browse files
app.py
CHANGED
@@ -4,12 +4,6 @@ import time
|
|
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,10 +29,8 @@ def process_file(file):
|
|
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.
|
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>.
|
|
|
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 |
return results
|
30 |
|
31 |
def create_ui():
|
|
|
|
|
32 |
with gr.Blocks(theme=gr.themes.Soft()) as app:
|
33 |
+
gr.HTML("<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>.
|