Spaces:
Running
Running
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title> Legal Retrieval Study </title> | |
<!-- Bootstrap --> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | |
<!-- Normal CSS --> | |
<link rel="stylesheet" href="study_style.css" /> | |
</head> | |
<body> | |
<div class="alert alert-success" id="username"> </div> | |
<h1 style="font-weight: bold;"> 🔍 Legal Retriever Evaluation Study </h1> | |
<hr /> | |
<p> We really appreciate your participation in our study, which will help us better understand how to best evaluate and use legal retrieval models. </p> | |
</body> | |
<script> | |
// Make sure user information is available before the app serves questions. | |
var url = window.location.href; | |
var username = url.split("?id="); | |
if (username.length == 1) { | |
window.location.href = "index.html"; | |
} else { | |
document.getElementById("username").innerHTML = "Logged in as " + username[1] + "!"; | |
} | |
var user = username[1]; | |
</script> | |
<script type="module"> | |
// Load dataset information. | |
import { uploadFile } from "https://cdn.jsdelivr.net/npm/@huggingface/hub@0.15.1/+esm"; | |
await uploadFile({ | |
repo: "ebrowne/test-data", | |
// Can work with native File in browsers | |
file: { | |
path: "response.json", | |
content: {"email": user, "numerical_data": 1, "datetime": Date.now().toString()} | |
} | |
}); | |
</script> | |
</html> |