Skip to content

Commit

Permalink
fix console/demo client page to run as embedded huggingface app
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Feb 18, 2023
1 parent c5f252f commit 6317b73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions grobid-service/src/main/resources/web/grobid/grobid.js
Expand Up @@ -23,6 +23,10 @@ var grobid = (function($) {
}
if (localBase.endsWith("#")) {
localBase = localBase.substring(0,localBase.length-1);
}
if (localBase.indexOf("?") != -1) {
// remove possible uri parameters
localBase = localBase.substring(0,localBase.indexOf("?"));
}
return localBase + "api/" + ext;
}
Expand Down
5 changes: 4 additions & 1 deletion grobid-service/src/main/resources/web/index.html
Expand Up @@ -34,6 +34,9 @@
</head>

<body>
<!--div class="alert alert-danger" class="col-md-8" style="margin-top:-20px; margin-bottom: 0px; padding-top: 10px; padding-bottom: 0px; width: 100%; display: flex; justify-content: center;">
<p> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> This server uses CRF models and CPU, for best accuracy select Deep Learning models and use GPU</p>
</div-->
<div class="container">

<div class="content">
Expand Down Expand Up @@ -323,7 +326,7 @@ <h2>
</div>

<footer>
<p><span style="color:#848484;">&copy; Grobid contributors 2022 </span></p>
<p><span style="color:#848484;">&copy; Grobid contributors 2023 </span></p>
</footer>
</div>

Expand Down

0 comments on commit 6317b73

Please sign in to comment.