Spaces:
Running
Running
= commited on
Commit Β·
fa1c690
1
Parent(s): c251e38
up all
Browse files- Dockerfile +3 -2
- Manifest.toml +461 -0
- OCNotebook.jl +95 -25
- Project.toml +3 -0
Dockerfile
CHANGED
|
@@ -11,7 +11,8 @@ EXPOSE 8000
|
|
| 11 |
EXPOSE 80
|
| 12 |
ENV JULIA_DEPOT_PATH "/home/user/.julia"
|
| 13 |
|
| 14 |
-
RUN julia -e 'using Pkg; Pkg.add("Pluto"); using
|
| 15 |
|
| 16 |
#ENTRYPOINT julia --project -e 'using Pluto; Pluto.run(port=8000, host="0.0.0.0", launch_browser=false, require_secret_for_open_links=false)'
|
| 17 |
-
ENTRYPOINT julia --project -e 'using Pluto; Pluto.run(Pluto.ServerSession(secret="ostrea", options=Pluto.Configuration.from_flat_kwargs(host="0.0.0.0", port=8000, launch_browser=false)))'
|
|
|
|
|
|
| 11 |
EXPOSE 80
|
| 12 |
ENV JULIA_DEPOT_PATH "/home/user/.julia"
|
| 13 |
|
| 14 |
+
RUN julia -e 'using Pkg; Pkg.add(["Pluto", "PlutoSliderServer"]); using PlutoSliderServer'
|
| 15 |
|
| 16 |
#ENTRYPOINT julia --project -e 'using Pluto; Pluto.run(port=8000, host="0.0.0.0", launch_browser=false, require_secret_for_open_links=false)'
|
| 17 |
+
#ENTRYPOINT julia --project -e 'using Pluto; Pluto.run(Pluto.ServerSession(secret="ostrea", options=Pluto.Configuration.from_flat_kwargs(host="0.0.0.0", port=8000, launch_browser=false)))'
|
| 18 |
+
ENTRYPOINT julia --project -e 'using PlutoSliderServer; PlutoSliderServer.run_notebook("OCNotebook.jl"; SliderServer_port=8000, SliderServer_host="0.0.0.0")'
|
Manifest.toml
ADDED
|
@@ -0,0 +1,461 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is machine-generated - editing it directly is not advised
|
| 2 |
+
|
| 3 |
+
julia_version = "1.10.4"
|
| 4 |
+
manifest_format = "2.0"
|
| 5 |
+
project_hash = "13a51ad2b377d764861ea553e631182e0e81a599"
|
| 6 |
+
|
| 7 |
+
[[deps.AbstractPlutoDingetjes]]
|
| 8 |
+
deps = ["Pkg"]
|
| 9 |
+
git-tree-sha1 = "6e1d2a35f2f90a4bc7c2ed98079b2ba09c35b83a"
|
| 10 |
+
uuid = "6e696c72-6542-2067-7265-42206c756150"
|
| 11 |
+
version = "1.3.2"
|
| 12 |
+
|
| 13 |
+
[[deps.AbstractTrees]]
|
| 14 |
+
git-tree-sha1 = "2d9c9a55f9c93e8887ad391fbae72f8ef55e1177"
|
| 15 |
+
uuid = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
|
| 16 |
+
version = "0.4.5"
|
| 17 |
+
|
| 18 |
+
[[deps.ArgTools]]
|
| 19 |
+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
|
| 20 |
+
version = "1.1.1"
|
| 21 |
+
|
| 22 |
+
[[deps.Artifacts]]
|
| 23 |
+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
|
| 24 |
+
|
| 25 |
+
[[deps.Base64]]
|
| 26 |
+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
| 27 |
+
|
| 28 |
+
[[deps.BetterFileWatching]]
|
| 29 |
+
deps = ["Deno_jll", "JSON"]
|
| 30 |
+
git-tree-sha1 = "0d7ee0a1acad90d544fa87cc3d6f463e99abb77a"
|
| 31 |
+
uuid = "c9fd44ac-77b5-486c-9482-9798bd063cc6"
|
| 32 |
+
version = "0.1.5"
|
| 33 |
+
|
| 34 |
+
[[deps.BitFlags]]
|
| 35 |
+
git-tree-sha1 = "0691e34b3bb8be9307330f88d1a3c3f25466c24d"
|
| 36 |
+
uuid = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35"
|
| 37 |
+
version = "0.1.9"
|
| 38 |
+
|
| 39 |
+
[[deps.CodecZlib]]
|
| 40 |
+
deps = ["TranscodingStreams", "Zlib_jll"]
|
| 41 |
+
git-tree-sha1 = "962834c22b66e32aa10f7611c08c8ca4e20749a9"
|
| 42 |
+
uuid = "944b1d66-785c-5afd-91f1-9de20f533193"
|
| 43 |
+
version = "0.7.8"
|
| 44 |
+
|
| 45 |
+
[[deps.ConcurrentUtilities]]
|
| 46 |
+
deps = ["Serialization", "Sockets"]
|
| 47 |
+
git-tree-sha1 = "d9d26935a0bcffc87d2613ce14c527c99fc543fd"
|
| 48 |
+
uuid = "f0e56b4a-5159-44fe-b623-3e5288b988bb"
|
| 49 |
+
version = "2.5.0"
|
| 50 |
+
|
| 51 |
+
[[deps.Configurations]]
|
| 52 |
+
deps = ["ExproniconLite", "OrderedCollections", "TOML"]
|
| 53 |
+
git-tree-sha1 = "4358750bb58a3caefd5f37a4a0c5bfdbbf075252"
|
| 54 |
+
uuid = "5218b696-f38b-4ac9-8b61-a12ec717816d"
|
| 55 |
+
version = "0.17.6"
|
| 56 |
+
|
| 57 |
+
[[deps.DataAPI]]
|
| 58 |
+
git-tree-sha1 = "abe83f3a2f1b857aac70ef8b269080af17764bbe"
|
| 59 |
+
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
|
| 60 |
+
version = "1.16.0"
|
| 61 |
+
|
| 62 |
+
[[deps.DataValueInterfaces]]
|
| 63 |
+
git-tree-sha1 = "bfc1187b79289637fa0ef6d4436ebdfe6905cbd6"
|
| 64 |
+
uuid = "e2d170a0-9d28-54be-80f0-106bbe20a464"
|
| 65 |
+
version = "1.0.0"
|
| 66 |
+
|
| 67 |
+
[[deps.Dates]]
|
| 68 |
+
deps = ["Printf"]
|
| 69 |
+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
| 70 |
+
|
| 71 |
+
[[deps.Deno_jll]]
|
| 72 |
+
deps = ["Artifacts", "JLLWrappers", "Libdl"]
|
| 73 |
+
git-tree-sha1 = "cd6756e833c377e0ce9cd63fb97689a255f12323"
|
| 74 |
+
uuid = "04572ae6-984a-583e-9378-9577a1c2574d"
|
| 75 |
+
version = "1.33.4+0"
|
| 76 |
+
|
| 77 |
+
[[deps.Distributed]]
|
| 78 |
+
deps = ["Random", "Serialization", "Sockets"]
|
| 79 |
+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
|
| 80 |
+
|
| 81 |
+
[[deps.Downloads]]
|
| 82 |
+
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
|
| 83 |
+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
|
| 84 |
+
version = "1.6.0"
|
| 85 |
+
|
| 86 |
+
[[deps.ExceptionUnwrapping]]
|
| 87 |
+
deps = ["Test"]
|
| 88 |
+
git-tree-sha1 = "d36f682e590a83d63d1c7dbd287573764682d12a"
|
| 89 |
+
uuid = "460bff9d-24e4-43bc-9d9f-a8973cb893f4"
|
| 90 |
+
version = "0.1.11"
|
| 91 |
+
|
| 92 |
+
[[deps.Expat_jll]]
|
| 93 |
+
deps = ["Artifacts", "JLLWrappers", "Libdl"]
|
| 94 |
+
git-tree-sha1 = "d55dffd9ae73ff72f1c0482454dcf2ec6c6c4a63"
|
| 95 |
+
uuid = "2e619515-83b5-522b-bb60-26c02a35a201"
|
| 96 |
+
version = "2.6.5+0"
|
| 97 |
+
|
| 98 |
+
[[deps.ExpressionExplorer]]
|
| 99 |
+
git-tree-sha1 = "bf2e6a47b70dfb5d103f300ef83d950239f9fa50"
|
| 100 |
+
uuid = "21656369-7473-754a-2065-74616d696c43"
|
| 101 |
+
version = "1.1.2"
|
| 102 |
+
|
| 103 |
+
[[deps.ExproniconLite]]
|
| 104 |
+
git-tree-sha1 = "c13f0b150373771b0fdc1713c97860f8df12e6c2"
|
| 105 |
+
uuid = "55351af7-c7e9-48d6-89ff-24e801d99491"
|
| 106 |
+
version = "0.10.14"
|
| 107 |
+
|
| 108 |
+
[[deps.FileWatching]]
|
| 109 |
+
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
|
| 110 |
+
|
| 111 |
+
[[deps.FromFile]]
|
| 112 |
+
deps = ["Downloads", "Requires"]
|
| 113 |
+
git-tree-sha1 = "fd1b6f327472d0faf28b4d1fda8d9b582ab136df"
|
| 114 |
+
uuid = "ff7dd447-1dcb-4ce3-b8ac-22a812192de7"
|
| 115 |
+
version = "0.1.6"
|
| 116 |
+
|
| 117 |
+
[[deps.FuzzyCompletions]]
|
| 118 |
+
deps = ["REPL"]
|
| 119 |
+
git-tree-sha1 = "be713866335f48cfb1285bff2d0cbb8304c1701c"
|
| 120 |
+
uuid = "fb4132e2-a121-4a70-b8a1-d5b831dcdcc2"
|
| 121 |
+
version = "0.5.5"
|
| 122 |
+
|
| 123 |
+
[[deps.Git]]
|
| 124 |
+
deps = ["Git_jll"]
|
| 125 |
+
git-tree-sha1 = "04eff47b1354d702c3a85e8ab23d539bb7d5957e"
|
| 126 |
+
uuid = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2"
|
| 127 |
+
version = "1.3.1"
|
| 128 |
+
|
| 129 |
+
[[deps.Git_jll]]
|
| 130 |
+
deps = ["Artifacts", "Expat_jll", "JLLWrappers", "LibCURL_jll", "Libdl", "Libiconv_jll", "OpenSSL_jll", "PCRE2_jll", "Zlib_jll"]
|
| 131 |
+
git-tree-sha1 = "2f6d6f7e6d6de361865d4394b802c02fc944fc7c"
|
| 132 |
+
uuid = "f8c6e375-362e-5223-8a59-34ff63f689eb"
|
| 133 |
+
version = "2.49.0+0"
|
| 134 |
+
|
| 135 |
+
[[deps.Glob]]
|
| 136 |
+
git-tree-sha1 = "97285bbd5230dd766e9ef6749b80fc617126d496"
|
| 137 |
+
uuid = "c27321d9-0574-5035-807b-f59d2c89b15c"
|
| 138 |
+
version = "1.3.1"
|
| 139 |
+
|
| 140 |
+
[[deps.HTTP]]
|
| 141 |
+
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "PrecompileTools", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]
|
| 142 |
+
git-tree-sha1 = "f93655dc73d7a0b4a368e3c0bce296ae035ad76e"
|
| 143 |
+
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3"
|
| 144 |
+
version = "1.10.16"
|
| 145 |
+
|
| 146 |
+
[[deps.HypertextLiteral]]
|
| 147 |
+
deps = ["Tricks"]
|
| 148 |
+
git-tree-sha1 = "7134810b1afce04bbc1045ca1985fbe81ce17653"
|
| 149 |
+
uuid = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
|
| 150 |
+
version = "0.9.5"
|
| 151 |
+
|
| 152 |
+
[[deps.InteractiveUtils]]
|
| 153 |
+
deps = ["Markdown"]
|
| 154 |
+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
|
| 155 |
+
|
| 156 |
+
[[deps.IteratorInterfaceExtensions]]
|
| 157 |
+
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856"
|
| 158 |
+
uuid = "82899510-4779-5014-852e-03e436cf321d"
|
| 159 |
+
version = "1.0.0"
|
| 160 |
+
|
| 161 |
+
[[deps.JLLWrappers]]
|
| 162 |
+
deps = ["Artifacts", "Preferences"]
|
| 163 |
+
git-tree-sha1 = "a007feb38b422fbdab534406aeca1b86823cb4d6"
|
| 164 |
+
uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
|
| 165 |
+
version = "1.7.0"
|
| 166 |
+
|
| 167 |
+
[[deps.JSON]]
|
| 168 |
+
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
|
| 169 |
+
git-tree-sha1 = "31e996f0a15c7b280ba9f76636b3ff9e2ae58c9a"
|
| 170 |
+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
|
| 171 |
+
version = "0.21.4"
|
| 172 |
+
|
| 173 |
+
[[deps.LazilyInitializedFields]]
|
| 174 |
+
git-tree-sha1 = "0f2da712350b020bc3957f269c9caad516383ee0"
|
| 175 |
+
uuid = "0e77f7df-68c5-4e49-93ce-4cd80f5598bf"
|
| 176 |
+
version = "1.3.0"
|
| 177 |
+
|
| 178 |
+
[[deps.LeftChildRightSiblingTrees]]
|
| 179 |
+
deps = ["AbstractTrees"]
|
| 180 |
+
git-tree-sha1 = "fb6803dafae4a5d62ea5cab204b1e657d9737e7f"
|
| 181 |
+
uuid = "1d6d02ad-be62-4b6b-8a6d-2f90e265016e"
|
| 182 |
+
version = "0.2.0"
|
| 183 |
+
|
| 184 |
+
[[deps.LibCURL]]
|
| 185 |
+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
|
| 186 |
+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
|
| 187 |
+
version = "0.6.4"
|
| 188 |
+
|
| 189 |
+
[[deps.LibCURL_jll]]
|
| 190 |
+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
|
| 191 |
+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
|
| 192 |
+
version = "8.4.0+0"
|
| 193 |
+
|
| 194 |
+
[[deps.LibGit2]]
|
| 195 |
+
deps = ["Base64", "LibGit2_jll", "NetworkOptions", "Printf", "SHA"]
|
| 196 |
+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
|
| 197 |
+
|
| 198 |
+
[[deps.LibGit2_jll]]
|
| 199 |
+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"]
|
| 200 |
+
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
|
| 201 |
+
version = "1.6.4+0"
|
| 202 |
+
|
| 203 |
+
[[deps.LibSSH2_jll]]
|
| 204 |
+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
|
| 205 |
+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
|
| 206 |
+
version = "1.11.0+1"
|
| 207 |
+
|
| 208 |
+
[[deps.Libdl]]
|
| 209 |
+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
|
| 210 |
+
|
| 211 |
+
[[deps.Libiconv_jll]]
|
| 212 |
+
deps = ["Artifacts", "JLLWrappers", "Libdl"]
|
| 213 |
+
git-tree-sha1 = "be484f5c92fad0bd8acfef35fe017900b0b73809"
|
| 214 |
+
uuid = "94ce4f54-9a6c-5748-9c1c-f9c7231a4531"
|
| 215 |
+
version = "1.18.0+0"
|
| 216 |
+
|
| 217 |
+
[[deps.Logging]]
|
| 218 |
+
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
|
| 219 |
+
|
| 220 |
+
[[deps.LoggingExtras]]
|
| 221 |
+
deps = ["Dates", "Logging"]
|
| 222 |
+
git-tree-sha1 = "f02b56007b064fbfddb4c9cd60161b6dd0f40df3"
|
| 223 |
+
uuid = "e6f89c97-d47a-5376-807f-9c37f3926c36"
|
| 224 |
+
version = "1.1.0"
|
| 225 |
+
|
| 226 |
+
[[deps.MIMEs]]
|
| 227 |
+
git-tree-sha1 = "c64d943587f7187e751162b3b84445bbbd79f691"
|
| 228 |
+
uuid = "6c6e2e6c-3030-632d-7369-2d6c69616d65"
|
| 229 |
+
version = "1.1.0"
|
| 230 |
+
|
| 231 |
+
[[deps.Malt]]
|
| 232 |
+
deps = ["Distributed", "Logging", "RelocatableFolders", "Serialization", "Sockets"]
|
| 233 |
+
git-tree-sha1 = "02a728ada9d6caae583a0f87c1dd3844f99ec3fd"
|
| 234 |
+
uuid = "36869731-bdee-424d-aa32-cab38c994e3b"
|
| 235 |
+
version = "1.1.2"
|
| 236 |
+
|
| 237 |
+
[[deps.Markdown]]
|
| 238 |
+
deps = ["Base64"]
|
| 239 |
+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
|
| 240 |
+
|
| 241 |
+
[[deps.MbedTLS]]
|
| 242 |
+
deps = ["Dates", "MbedTLS_jll", "MozillaCACerts_jll", "NetworkOptions", "Random", "Sockets"]
|
| 243 |
+
git-tree-sha1 = "c067a280ddc25f196b5e7df3877c6b226d390aaf"
|
| 244 |
+
uuid = "739be429-bea8-5141-9913-cc70e7f3736d"
|
| 245 |
+
version = "1.1.9"
|
| 246 |
+
|
| 247 |
+
[[deps.MbedTLS_jll]]
|
| 248 |
+
deps = ["Artifacts", "Libdl"]
|
| 249 |
+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
|
| 250 |
+
version = "2.28.2+1"
|
| 251 |
+
|
| 252 |
+
[[deps.Mmap]]
|
| 253 |
+
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
|
| 254 |
+
|
| 255 |
+
[[deps.MozillaCACerts_jll]]
|
| 256 |
+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
|
| 257 |
+
version = "2023.1.10"
|
| 258 |
+
|
| 259 |
+
[[deps.MsgPack]]
|
| 260 |
+
deps = ["Serialization"]
|
| 261 |
+
git-tree-sha1 = "f5db02ae992c260e4826fe78c942954b48e1d9c2"
|
| 262 |
+
uuid = "99f44e22-a591-53d1-9472-aa23ef4bd671"
|
| 263 |
+
version = "1.2.1"
|
| 264 |
+
|
| 265 |
+
[[deps.NetworkOptions]]
|
| 266 |
+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
|
| 267 |
+
version = "1.2.0"
|
| 268 |
+
|
| 269 |
+
[[deps.OpenSSL]]
|
| 270 |
+
deps = ["BitFlags", "Dates", "MozillaCACerts_jll", "OpenSSL_jll", "Sockets"]
|
| 271 |
+
git-tree-sha1 = "38cb508d080d21dc1128f7fb04f20387ed4c0af4"
|
| 272 |
+
uuid = "4d8831e6-92b7-49fb-bdf8-b643e874388c"
|
| 273 |
+
version = "1.4.3"
|
| 274 |
+
|
| 275 |
+
[[deps.OpenSSL_jll]]
|
| 276 |
+
deps = ["Artifacts", "JLLWrappers", "Libdl"]
|
| 277 |
+
git-tree-sha1 = "a9697f1d06cc3eb3fb3ad49cc67f2cfabaac31ea"
|
| 278 |
+
uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
|
| 279 |
+
version = "3.0.16+0"
|
| 280 |
+
|
| 281 |
+
[[deps.OrderedCollections]]
|
| 282 |
+
git-tree-sha1 = "cc4054e898b852042d7b503313f7ad03de99c3dd"
|
| 283 |
+
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
|
| 284 |
+
version = "1.8.0"
|
| 285 |
+
|
| 286 |
+
[[deps.PCRE2_jll]]
|
| 287 |
+
deps = ["Artifacts", "Libdl"]
|
| 288 |
+
uuid = "efcefdf7-47ab-520b-bdef-62a2eaa19f15"
|
| 289 |
+
version = "10.42.0+1"
|
| 290 |
+
|
| 291 |
+
[[deps.Parsers]]
|
| 292 |
+
deps = ["Dates", "PrecompileTools", "UUIDs"]
|
| 293 |
+
git-tree-sha1 = "8489905bcdbcfac64d1daa51ca07c0d8f0283821"
|
| 294 |
+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
|
| 295 |
+
version = "2.8.1"
|
| 296 |
+
|
| 297 |
+
[[deps.Pkg]]
|
| 298 |
+
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
|
| 299 |
+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
|
| 300 |
+
version = "1.10.0"
|
| 301 |
+
|
| 302 |
+
[[deps.Pluto]]
|
| 303 |
+
deps = ["Base64", "Configurations", "Dates", "Downloads", "ExpressionExplorer", "FileWatching", "FuzzyCompletions", "HTTP", "HypertextLiteral", "InteractiveUtils", "Logging", "LoggingExtras", "MIMEs", "Malt", "Markdown", "MsgPack", "Pkg", "PlutoDependencyExplorer", "PrecompileSignatures", "PrecompileTools", "REPL", "RegistryInstances", "RelocatableFolders", "Scratch", "Sockets", "TOML", "Tables", "URIs", "UUIDs"]
|
| 304 |
+
git-tree-sha1 = "a71880b94171f7e29b24cbc617952522a362ff40"
|
| 305 |
+
uuid = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
|
| 306 |
+
version = "0.20.5"
|
| 307 |
+
|
| 308 |
+
[[deps.PlutoDependencyExplorer]]
|
| 309 |
+
deps = ["ExpressionExplorer", "InteractiveUtils", "Markdown"]
|
| 310 |
+
git-tree-sha1 = "9071bfe6d1c3c51f62918513e8dfa0705fbdef7e"
|
| 311 |
+
uuid = "72656b73-756c-7461-726b-72656b6b696b"
|
| 312 |
+
version = "1.2.1"
|
| 313 |
+
|
| 314 |
+
[[deps.PlutoSliderServer]]
|
| 315 |
+
deps = ["AbstractPlutoDingetjes", "Base64", "BetterFileWatching", "Configurations", "Distributed", "FromFile", "Git", "Glob", "HTTP", "JSON", "Logging", "Pkg", "Pluto", "PlutoDependencyExplorer", "SHA", "Serialization", "Sockets", "TOML", "TerminalLoggers", "UUIDs"]
|
| 316 |
+
git-tree-sha1 = "9e1a630079de12343df2ccf9a90c46177bd38780"
|
| 317 |
+
uuid = "2fc8631c-6f24-4c5b-bca7-cbb509c42db4"
|
| 318 |
+
version = "1.3.1"
|
| 319 |
+
|
| 320 |
+
[[deps.PrecompileSignatures]]
|
| 321 |
+
git-tree-sha1 = "18ef344185f25ee9d51d80e179f8dad33dc48eb1"
|
| 322 |
+
uuid = "91cefc8d-f054-46dc-8f8c-26e11d7c5411"
|
| 323 |
+
version = "3.0.3"
|
| 324 |
+
|
| 325 |
+
[[deps.PrecompileTools]]
|
| 326 |
+
deps = ["Preferences"]
|
| 327 |
+
git-tree-sha1 = "5aa36f7049a63a1528fe8f7c3f2113413ffd4e1f"
|
| 328 |
+
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
|
| 329 |
+
version = "1.2.1"
|
| 330 |
+
|
| 331 |
+
[[deps.Preferences]]
|
| 332 |
+
deps = ["TOML"]
|
| 333 |
+
git-tree-sha1 = "9306f6085165d270f7e3db02af26a400d580f5c6"
|
| 334 |
+
uuid = "21216c6a-2e73-6563-6e65-726566657250"
|
| 335 |
+
version = "1.4.3"
|
| 336 |
+
|
| 337 |
+
[[deps.Printf]]
|
| 338 |
+
deps = ["Unicode"]
|
| 339 |
+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
|
| 340 |
+
|
| 341 |
+
[[deps.ProgressLogging]]
|
| 342 |
+
deps = ["Logging", "SHA", "UUIDs"]
|
| 343 |
+
git-tree-sha1 = "80d919dee55b9c50e8d9e2da5eeafff3fe58b539"
|
| 344 |
+
uuid = "33c8b6b6-d38a-422a-b730-caa89a2f386c"
|
| 345 |
+
version = "0.1.4"
|
| 346 |
+
|
| 347 |
+
[[deps.REPL]]
|
| 348 |
+
deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
|
| 349 |
+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
|
| 350 |
+
|
| 351 |
+
[[deps.Random]]
|
| 352 |
+
deps = ["SHA"]
|
| 353 |
+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
|
| 354 |
+
|
| 355 |
+
[[deps.RegistryInstances]]
|
| 356 |
+
deps = ["LazilyInitializedFields", "Pkg", "TOML", "Tar"]
|
| 357 |
+
git-tree-sha1 = "ffd19052caf598b8653b99404058fce14828be51"
|
| 358 |
+
uuid = "2792f1a3-b283-48e8-9a74-f99dce5104f3"
|
| 359 |
+
version = "0.1.0"
|
| 360 |
+
|
| 361 |
+
[[deps.RelocatableFolders]]
|
| 362 |
+
deps = ["SHA", "Scratch"]
|
| 363 |
+
git-tree-sha1 = "ffdaf70d81cf6ff22c2b6e733c900c3321cab864"
|
| 364 |
+
uuid = "05181044-ff0b-4ac5-8273-598c1e38db00"
|
| 365 |
+
version = "1.0.1"
|
| 366 |
+
|
| 367 |
+
[[deps.Requires]]
|
| 368 |
+
deps = ["UUIDs"]
|
| 369 |
+
git-tree-sha1 = "62389eeff14780bfe55195b7204c0d8738436d64"
|
| 370 |
+
uuid = "ae029012-a4dd-5104-9daa-d747884805df"
|
| 371 |
+
version = "1.3.1"
|
| 372 |
+
|
| 373 |
+
[[deps.SHA]]
|
| 374 |
+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
|
| 375 |
+
version = "0.7.0"
|
| 376 |
+
|
| 377 |
+
[[deps.Scratch]]
|
| 378 |
+
deps = ["Dates"]
|
| 379 |
+
git-tree-sha1 = "3bac05bc7e74a75fd9cba4295cde4045d9fe2386"
|
| 380 |
+
uuid = "6c6a2e73-6563-6170-7368-637461726353"
|
| 381 |
+
version = "1.2.1"
|
| 382 |
+
|
| 383 |
+
[[deps.Serialization]]
|
| 384 |
+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
|
| 385 |
+
|
| 386 |
+
[[deps.SimpleBufferStream]]
|
| 387 |
+
git-tree-sha1 = "f305871d2f381d21527c770d4788c06c097c9bc1"
|
| 388 |
+
uuid = "777ac1f9-54b0-4bf8-805c-2214025038e7"
|
| 389 |
+
version = "1.2.0"
|
| 390 |
+
|
| 391 |
+
[[deps.Sockets]]
|
| 392 |
+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
|
| 393 |
+
|
| 394 |
+
[[deps.TOML]]
|
| 395 |
+
deps = ["Dates"]
|
| 396 |
+
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
|
| 397 |
+
version = "1.0.3"
|
| 398 |
+
|
| 399 |
+
[[deps.TableTraits]]
|
| 400 |
+
deps = ["IteratorInterfaceExtensions"]
|
| 401 |
+
git-tree-sha1 = "c06b2f539df1c6efa794486abfb6ed2022561a39"
|
| 402 |
+
uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c"
|
| 403 |
+
version = "1.0.1"
|
| 404 |
+
|
| 405 |
+
[[deps.Tables]]
|
| 406 |
+
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "OrderedCollections", "TableTraits"]
|
| 407 |
+
git-tree-sha1 = "598cd7c1f68d1e205689b1c2fe65a9f85846f297"
|
| 408 |
+
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
|
| 409 |
+
version = "1.12.0"
|
| 410 |
+
|
| 411 |
+
[[deps.Tar]]
|
| 412 |
+
deps = ["ArgTools", "SHA"]
|
| 413 |
+
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
|
| 414 |
+
version = "1.10.0"
|
| 415 |
+
|
| 416 |
+
[[deps.TerminalLoggers]]
|
| 417 |
+
deps = ["LeftChildRightSiblingTrees", "Logging", "Markdown", "Printf", "ProgressLogging", "UUIDs"]
|
| 418 |
+
git-tree-sha1 = "f133fab380933d042f6796eda4e130272ba520ca"
|
| 419 |
+
uuid = "5d786b92-1e48-4d6f-9151-6b4477ca9bed"
|
| 420 |
+
version = "0.1.7"
|
| 421 |
+
|
| 422 |
+
[[deps.Test]]
|
| 423 |
+
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
|
| 424 |
+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
|
| 425 |
+
|
| 426 |
+
[[deps.TranscodingStreams]]
|
| 427 |
+
git-tree-sha1 = "0c45878dcfdcfa8480052b6ab162cdd138781742"
|
| 428 |
+
uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
|
| 429 |
+
version = "0.11.3"
|
| 430 |
+
|
| 431 |
+
[[deps.Tricks]]
|
| 432 |
+
git-tree-sha1 = "6cae795a5a9313bbb4f60683f7263318fc7d1505"
|
| 433 |
+
uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
|
| 434 |
+
version = "0.1.10"
|
| 435 |
+
|
| 436 |
+
[[deps.URIs]]
|
| 437 |
+
git-tree-sha1 = "cbbebadbcc76c5ca1cc4b4f3b0614b3e603b5000"
|
| 438 |
+
uuid = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"
|
| 439 |
+
version = "1.5.2"
|
| 440 |
+
|
| 441 |
+
[[deps.UUIDs]]
|
| 442 |
+
deps = ["Random", "SHA"]
|
| 443 |
+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
|
| 444 |
+
|
| 445 |
+
[[deps.Unicode]]
|
| 446 |
+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
|
| 447 |
+
|
| 448 |
+
[[deps.Zlib_jll]]
|
| 449 |
+
deps = ["Libdl"]
|
| 450 |
+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
|
| 451 |
+
version = "1.2.13+1"
|
| 452 |
+
|
| 453 |
+
[[deps.nghttp2_jll]]
|
| 454 |
+
deps = ["Artifacts", "Libdl"]
|
| 455 |
+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
|
| 456 |
+
version = "1.52.0+1"
|
| 457 |
+
|
| 458 |
+
[[deps.p7zip_jll]]
|
| 459 |
+
deps = ["Artifacts", "Libdl"]
|
| 460 |
+
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
|
| 461 |
+
version = "17.4.0+2"
|
OCNotebook.jl
CHANGED
|
@@ -19,12 +19,66 @@ end
|
|
| 19 |
# βββ‘ 7e7c9e34-164b-11f0-0f8c-1307e665d759
|
| 20 |
using HTTP, JSON, PlutoUI, Markdown, DataFrames
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
# βββ‘ 0af83608-2c8b-4ef4-bee7-6a0ec4fc7cb1
|
| 23 |
-
md" # Ostrea Cultura
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# βββ‘ 86b197ec-84f7-4fc1-9abf-e4244e853ce7
|
| 26 |
begin
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
function search_fastfacts(claim::String; model::String = "factchecks", top_k::Int = 5)
|
| 30 |
base_url = "https://stefanjwojcik-misinfo-detection-app.hf.space/fastfactsearch"
|
|
@@ -39,30 +93,38 @@ function search_fastfacts(claim::String; model::String = "factchecks", top_k::In
|
|
| 39 |
error("Failed to fetch results: $(response.status)")
|
| 40 |
end
|
| 41 |
end
|
|
|
|
| 42 |
end
|
| 43 |
|
| 44 |
-
# βββ‘
|
| 45 |
-
|
| 46 |
|
| 47 |
-
# βββ‘
|
|
|
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
# βββ‘
|
| 51 |
-
|
| 52 |
|
| 53 |
# βββ‘ 7169689a-9d31-4ac1-bdd7-3771c515e1b3
|
| 54 |
md"""
|
| 55 |
-
!!!
|
| 56 |
-
|
| 57 |
-
|
| 58 |
|
| 59 |
"""
|
| 60 |
|
| 61 |
-
# βββ‘
|
| 62 |
-
#
|
| 63 |
|
| 64 |
-
# βββ‘
|
| 65 |
-
md"
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
# βββ‘ 785238ae-08b3-4221-85ba-97f4fc7d01e3
|
| 68 |
md" Enter your search claim in the box below and click 'submit' "
|
|
@@ -70,8 +132,11 @@ md" Enter your search claim in the box below and click 'submit' "
|
|
| 70 |
# βββ‘ c2afdd06-9918-4445-889e-1e45a68c0cd9
|
| 71 |
@bind claimtext confirm(TextField((90, 3), placeholder = "Climate change is a hoax", default="climate change is a hoax"))
|
| 72 |
|
| 73 |
-
# βββ‘
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
# βββ‘ 00000000-0000-0000-0000-000000000001
|
| 77 |
PLUTO_PROJECT_TOML_CONTENTS = """
|
|
@@ -549,17 +614,22 @@ version = "17.4.0+2"
|
|
| 549 |
"""
|
| 550 |
|
| 551 |
# βββ‘ Cell order:
|
| 552 |
-
#
|
| 553 |
-
#
|
| 554 |
-
#
|
| 555 |
-
#
|
| 556 |
-
#
|
| 557 |
-
#
|
| 558 |
-
#
|
| 559 |
-
#
|
| 560 |
# ββ67787025-355f-40ba-bf55-6305e253634d
|
|
|
|
|
|
|
|
|
|
|
|
|
| 561 |
# ββ785238ae-08b3-4221-85ba-97f4fc7d01e3
|
| 562 |
# ββc2afdd06-9918-4445-889e-1e45a68c0cd9
|
| 563 |
-
#
|
|
|
|
| 564 |
# ββ00000000-0000-0000-0000-000000000001
|
| 565 |
-
# ββ00000000-0000-0000-0000-000000000002
|
|
|
|
| 19 |
# βββ‘ 7e7c9e34-164b-11f0-0f8c-1307e665d759
|
| 20 |
using HTTP, JSON, PlutoUI, Markdown, DataFrames
|
| 21 |
|
| 22 |
+
# βββ‘ 11580113-c30e-45ab-a2ac-a73369f4d7ca
|
| 23 |
+
TableOfContents()
|
| 24 |
+
|
| 25 |
# βββ‘ 0af83608-2c8b-4ef4-bee7-6a0ec4fc7cb1
|
| 26 |
+
md" # Ostrea Cultura"
|
| 27 |
+
|
| 28 |
+
# βββ‘ ef22a5e4-9aab-4649-8a25-da40a211b191
|
| 29 |
+
md" *A Misinformation Remediation Company*"
|
| 30 |
|
| 31 |
# βββ‘ 86b197ec-84f7-4fc1-9abf-e4244e853ce7
|
| 32 |
begin
|
| 33 |
|
| 34 |
+
function dataframe_to_html(df::DataFrame)
|
| 35 |
+
html_rows = String[]
|
| 36 |
+
|
| 37 |
+
# Header row
|
| 38 |
+
push!(html_rows, "<thead><tr>" * join(["<th>$(col)</th>" for col in names(df)]) * "</tr></thead>")
|
| 39 |
+
|
| 40 |
+
# Data rows
|
| 41 |
+
for row in eachrow(df)
|
| 42 |
+
push!(html_rows, "<tr>" * join(["<td>$(row[col])</td>" for col in names(df)]) * "</tr>")
|
| 43 |
+
end
|
| 44 |
+
|
| 45 |
+
table_html = """
|
| 46 |
+
<style>
|
| 47 |
+
table.pretty-table {
|
| 48 |
+
border-collapse: collapse;
|
| 49 |
+
width: 100%;
|
| 50 |
+
font-family: system-ui, sans-serif;
|
| 51 |
+
margin-top: 10px;
|
| 52 |
+
color: #eee;
|
| 53 |
+
background-color: transparent;
|
| 54 |
+
}
|
| 55 |
+
.pretty-table th, .pretty-table td {
|
| 56 |
+
border: 1px solid #444;
|
| 57 |
+
padding: 8px;
|
| 58 |
+
}
|
| 59 |
+
.pretty-table th {
|
| 60 |
+
background-color: #333;
|
| 61 |
+
font-weight: 600;
|
| 62 |
+
}
|
| 63 |
+
.pretty-table tr:nth-child(even) {
|
| 64 |
+
background-color: #2a2a2a;
|
| 65 |
+
}
|
| 66 |
+
.pretty-table tr:nth-child(odd) {
|
| 67 |
+
background-color: #1e1e1e;
|
| 68 |
+
}
|
| 69 |
+
.pretty-table tr:hover {
|
| 70 |
+
background-color: #444;
|
| 71 |
+
}
|
| 72 |
+
</style>
|
| 73 |
+
<table class="pretty-table">
|
| 74 |
+
$(join(html_rows, ""))
|
| 75 |
+
</table>
|
| 76 |
+
"""
|
| 77 |
+
|
| 78 |
+
return HTML(table_html)
|
| 79 |
+
end
|
| 80 |
+
|
| 81 |
+
|
| 82 |
|
| 83 |
function search_fastfacts(claim::String; model::String = "factchecks", top_k::Int = 5)
|
| 84 |
base_url = "https://stefanjwojcik-misinfo-detection-app.hf.space/fastfactsearch"
|
|
|
|
| 93 |
error("Failed to fetch results: $(response.status)")
|
| 94 |
end
|
| 95 |
end
|
| 96 |
+
nothing
|
| 97 |
end
|
| 98 |
|
| 99 |
+
# βββ‘ 6ba2a2b7-cf88-4d68-ab4c-e221369edd03
|
| 100 |
+
Resource("https://upload.wikimedia.org/wikipedia/commons/1/1c/Oyster_%28PSF%29.png", :width => 400)
|
| 101 |
|
| 102 |
+
# βββ‘ 2187bada-f259-43ef-93ca-f4fd47b5b6e2
|
| 103 |
+
md" ### About"
|
| 104 |
|
| 105 |
+
# βββ‘ c09aa132-47d9-45d3-be58-4e1b8b5aef48
|
| 106 |
+
md"""
|
| 107 |
+
Ostrea Cultura provides misinformation detection and moderation services.We work with Trust and Safety teams to customize and deploy transparent, interpretable, and policy-aligned misinformation classification for large unstructured data. We work in industries ranging from social media and online gaming to web hosting, online marketplaces, and customer relations. Ostrea Cultura is the brainchild of scientist entrepreneur Jason Radford and Birdwatch co-creator Stefan Wojick.
|
| 108 |
+
"""
|
| 109 |
|
| 110 |
+
# βββ‘ 67787025-355f-40ba-bf55-6305e253634d
|
| 111 |
+
md" ### Claim Semantic Search"
|
| 112 |
|
| 113 |
# βββ‘ 7169689a-9d31-4ac1-bdd7-3771c515e1b3
|
| 114 |
md"""
|
| 115 |
+
!!! tip "What is Semantic Search?"
|
| 116 |
+
Semantic search is a method of retrieving information that focuses on the meaning behind a query rather than just matching exact words. It uses techniques from natural language processing (NLP), machine learning, and embeddings to understand context, intent, and relationships between concepts.
|
|
|
|
| 117 |
|
| 118 |
"""
|
| 119 |
|
| 120 |
+
# βββ‘ e3d65456-0646-44db-abad-193d778149ec
|
| 121 |
+
md"#### Search for Fact-checked Claims"
|
| 122 |
|
| 123 |
+
# βββ‘ 7ba4e521-51ba-4670-a1cf-396c555fcd5a
|
| 124 |
+
md"Number of Matches"
|
| 125 |
+
|
| 126 |
+
# βββ‘ 28653105-c9cc-4ee1-9df8-a54644172a4c
|
| 127 |
+
@bind nclaims Slider(0:20, default=5, show_value=true)
|
| 128 |
|
| 129 |
# βββ‘ 785238ae-08b3-4221-85ba-97f4fc7d01e3
|
| 130 |
md" Enter your search claim in the box below and click 'submit' "
|
|
|
|
| 132 |
# βββ‘ c2afdd06-9918-4445-889e-1e45a68c0cd9
|
| 133 |
@bind claimtext confirm(TextField((90, 3), placeholder = "Climate change is a hoax", default="climate change is a hoax"))
|
| 134 |
|
| 135 |
+
# βββ‘ 2ec6801c-707c-41ee-9415-e489ee52e3b5
|
| 136 |
+
md"### RESULTS"
|
| 137 |
+
|
| 138 |
+
# βββ‘ 475c45c1-8b0c-41fc-ab7e-dac5e2294e9c
|
| 139 |
+
dataframe_to_html(select(DataFrame(search_fastfacts(claimtext; top_k=nclaims)), [:score, :policy, :text]))
|
| 140 |
|
| 141 |
# βββ‘ 00000000-0000-0000-0000-000000000001
|
| 142 |
PLUTO_PROJECT_TOML_CONTENTS = """
|
|
|
|
| 614 |
"""
|
| 615 |
|
| 616 |
# βββ‘ Cell order:
|
| 617 |
+
# ββ7e7c9e34-164b-11f0-0f8c-1307e665d759
|
| 618 |
+
# ββ11580113-c30e-45ab-a2ac-a73369f4d7ca
|
| 619 |
+
# ββ0af83608-2c8b-4ef4-bee7-6a0ec4fc7cb1
|
| 620 |
+
# ββef22a5e4-9aab-4649-8a25-da40a211b191
|
| 621 |
+
# ββ86b197ec-84f7-4fc1-9abf-e4244e853ce7
|
| 622 |
+
# ββ6ba2a2b7-cf88-4d68-ab4c-e221369edd03
|
| 623 |
+
# ββ2187bada-f259-43ef-93ca-f4fd47b5b6e2
|
| 624 |
+
# ββc09aa132-47d9-45d3-be58-4e1b8b5aef48
|
| 625 |
# ββ67787025-355f-40ba-bf55-6305e253634d
|
| 626 |
+
# ββ7169689a-9d31-4ac1-bdd7-3771c515e1b3
|
| 627 |
+
# ββe3d65456-0646-44db-abad-193d778149ec
|
| 628 |
+
# ββ7ba4e521-51ba-4670-a1cf-396c555fcd5a
|
| 629 |
+
# β β28653105-c9cc-4ee1-9df8-a54644172a4c
|
| 630 |
# ββ785238ae-08b3-4221-85ba-97f4fc7d01e3
|
| 631 |
# ββc2afdd06-9918-4445-889e-1e45a68c0cd9
|
| 632 |
+
# ββ2ec6801c-707c-41ee-9415-e489ee52e3b5
|
| 633 |
+
# ββ475c45c1-8b0c-41fc-ab7e-dac5e2294e9c
|
| 634 |
# ββ00000000-0000-0000-0000-000000000001
|
| 635 |
+
# ββ00000000-0000-0000-0000-000000000002
|
Project.toml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[deps]
|
| 2 |
+
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
|
| 3 |
+
PlutoSliderServer = "2fc8631c-6f24-4c5b-bca7-cbb509c42db4"
|