Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
src/backend/gradio_molecule2d/templates/component/index.js
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
src/frontend/Index.svelte
CHANGED
@@ -37,8 +37,6 @@
|
|
37 |
export let interactive: boolean;
|
38 |
export let rtl = false;
|
39 |
|
40 |
-
let retrieveSmiles;
|
41 |
-
|
42 |
let el: HTMLTextAreaElement | HTMLInputElement;
|
43 |
const container = true;
|
44 |
|
@@ -112,12 +110,14 @@
|
|
112 |
|
113 |
<Viewer smiles={value} />
|
114 |
|
115 |
-
|
116 |
-
<
|
117 |
-
<
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
121 |
|
122 |
{#if showeditor}
|
123 |
<div class="absolute top-0 left-0 w-full z-10" style="height: 100%">
|
|
|
37 |
export let interactive: boolean;
|
38 |
export let rtl = false;
|
39 |
|
|
|
|
|
40 |
let el: HTMLTextAreaElement | HTMLInputElement;
|
41 |
const container = true;
|
42 |
|
|
|
110 |
|
111 |
<Viewer smiles={value} />
|
112 |
|
113 |
+
{#if interactive}
|
114 |
+
<div class="w-full flex justify-center">
|
115 |
+
<button on:click={showEditor} class="flex items-center">
|
116 |
+
<div class="w-4 h-4 mr-2"><Sketch /></div>
|
117 |
+
<span>Draw molecule</span>
|
118 |
+
</button>
|
119 |
+
</div>
|
120 |
+
{/if}
|
121 |
|
122 |
{#if showeditor}
|
123 |
<div class="absolute top-0 left-0 w-full z-10" style="height: 100%">
|
src/pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_molecule2d"
|
11 |
-
version = "0.0.
|
12 |
description = "Input chemical molecules as smiles strings and visualize them"
|
13 |
readme = "README.md"
|
14 |
license = "mit"
|
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_molecule2d"
|
11 |
+
version = "0.0.2"
|
12 |
description = "Input chemical molecules as smiles strings and visualize them"
|
13 |
readme = "README.md"
|
14 |
license = "mit"
|