Skip to content

Commit

Permalink
Merge pull request #57 from royerlab/i2kupdate1
Browse files Browse the repository at this point in the history
v2024.10.18
  • Loading branch information
royerloic authored Oct 19, 2024
2 parents fe77a0a + a22b1fe commit 59b996a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = napari-chatgpt
version = v2024.8.31
version = v2024.10.18.1
description = A napari plugin to process and analyse images with chatGPT.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down Expand Up @@ -55,7 +55,7 @@ install_requires =
xarray
arbol
playwright
duckduckgo-search==6.2.11
duckduckgo-search==6.3.2
ome-zarr
transformers
cryptography
Expand Down
7 changes: 0 additions & 7 deletions src/napari_chatgpt/chat_server/static/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ marked.use(markedHighlight({
}
}));

//marked.use(markedHighlight({
// langPrefix: 'hljs language-',
// highlight(code, lang) {
// const language = hljs.getLanguage(lang) ? lang : 'plaintext';
// return hljs.highlight(code, { language }).value;
// }
//}));

function escapeHTML(unsafeText)
{
Expand Down
6 changes: 6 additions & 0 deletions src/napari_chatgpt/chat_server/static/marked.min.js

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions src/napari_chatgpt/chat_server/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
<meta charset="UTF-8">
<title>Omega -- a chatGPT agent for image processing and analysis with
napari</title>
<!-- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"-->
<!-- rel="stylesheet">-->

<link rel="icon" type="image/png" href="static/OmegaLogoIcon.png" sizes="192x192">

<!-- tailwind -->
<link href="static/tailwind.min.css" rel="stylesheet"/>-->

<!-- tailwind style overrides -->
<style>
.chat-body {
width: 90%;
Expand Down Expand Up @@ -86,18 +88,20 @@
padding-left: 25px;
}
</style>
<!-- <script src="static/prism.js"></script>-->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.umd.js"></script>-->
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.umd.min.js"></script>-->

<!-- Marked -->
<script type="text/javascript" src="static/marked.min.js"></script>
<script type="text/javascript" src="static/marked-highlight.js"></script>

<!-- Sunlight -->
<link rel="stylesheet" type="text/css" href="static/sunlight.dark.css" />
<script type="text/javascript" src="static/sunlight-min.js"></script>
<script type="text/javascript" src="static/sunlight.python-min.js"></script>

<!-- Chat code -->
<script src="static/chat.js"></script>

<!-- List style override -->
<style>
.wrapper .entry-content ol {
list-style-type: decimal;
Expand Down

0 comments on commit 59b996a

Please sign in to comment.