Upgrade to Gradio-Lite 5
Browse files- index.html +6 -6
index.html
CHANGED
@@ -10,7 +10,7 @@ https://opensource.org/license/mit/
|
|
10 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
11 |
<title>Chat with your PDF</title>
|
12 |
<meta name="description" content="Chat with your PDF">
|
13 |
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite@4.
|
14 |
<style>
|
15 |
html, body {
|
16 |
margin: 0;
|
@@ -126,8 +126,8 @@ os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
|
|
126 |
import micropip
|
127 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/multidict/multidict-4.7.6-py3-none-any.whl", keep_going=True)
|
128 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/frozenlist/frozenlist-1.4.0-py3-none-any.whl", keep_going=True)
|
129 |
-
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/aiohttp/aiohttp-4.0.0a2.dev0-py3-none-any.whl", keep_going=True)
|
130 |
-
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/openai/openai-1.
|
131 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/urllib3/urllib3-2.1.0-py3-none-any.whl", keep_going=True)
|
132 |
await micropip.install("ssl")
|
133 |
import ssl
|
@@ -136,7 +136,7 @@ import httpx
|
|
136 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/urllib3/urllib3-2.1.0-py3-none-any.whl", keep_going=True)
|
137 |
import urllib3
|
138 |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
139 |
-
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/tiktoken/tiktoken-0.
|
140 |
|
141 |
|
142 |
import gradio as gr
|
@@ -1178,7 +1178,7 @@ def main():
|
|
1178 |
{ "left": "\\(", "right": "\\)", "display": False },
|
1179 |
{ "left": "\\[", "right": "\\]", "display": True },
|
1180 |
],
|
1181 |
-
|
1182 |
avatar_images=[None, "https://raw.githubusercontent.com/sonoisa/misc/main/resources/icons/chatbot_icon.png"]
|
1183 |
)
|
1184 |
|
@@ -1338,6 +1338,6 @@ main()
|
|
1338 |
}
|
1339 |
})();
|
1340 |
</script>
|
1341 |
-
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@gradio/lite@4.
|
1342 |
</body>
|
1343 |
</html>
|
|
|
10 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
11 |
<title>Chat with your PDF</title>
|
12 |
<meta name="description" content="Chat with your PDF">
|
13 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite@5.4.0/dist/lite.css" />
|
14 |
<style>
|
15 |
html, body {
|
16 |
margin: 0;
|
|
|
126 |
import micropip
|
127 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/multidict/multidict-4.7.6-py3-none-any.whl", keep_going=True)
|
128 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/frozenlist/frozenlist-1.4.0-py3-none-any.whl", keep_going=True)
|
129 |
+
# await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/aiohttp/aiohttp-4.0.0a2.dev0-py3-none-any.whl", keep_going=True)
|
130 |
+
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/openai/openai-1.39.0-py3-none-any.whl", keep_going=True)
|
131 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/urllib3/urllib3-2.1.0-py3-none-any.whl", keep_going=True)
|
132 |
await micropip.install("ssl")
|
133 |
import ssl
|
|
|
136 |
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/urllib3/urllib3-2.1.0-py3-none-any.whl", keep_going=True)
|
137 |
import urllib3
|
138 |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
139 |
+
await micropip.install("https://raw.githubusercontent.com/sonoisa/pyodide_wheels/main/tiktoken/tiktoken-0.8.0-cp312-cp312-pyodide_2024_0_wasm32.whl", keep_going=True)
|
140 |
|
141 |
|
142 |
import gradio as gr
|
|
|
1178 |
{ "left": "\\(", "right": "\\)", "display": False },
|
1179 |
{ "left": "\\[", "right": "\\]", "display": True },
|
1180 |
],
|
1181 |
+
layout="bubble",
|
1182 |
avatar_images=[None, "https://raw.githubusercontent.com/sonoisa/misc/main/resources/icons/chatbot_icon.png"]
|
1183 |
)
|
1184 |
|
|
|
1338 |
}
|
1339 |
})();
|
1340 |
</script>
|
1341 |
+
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@gradio/lite@5.4.0/dist/lite.js"></script>
|
1342 |
</body>
|
1343 |
</html>
|