fda
Browse files
controllers/gpt_enginner20240706133336
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit da9af972e4e99dfd761d27b3cbbcc88958bcdafc
|
routers/gra_07_html/gradio.py
CHANGED
@@ -10,6 +10,37 @@ def display_html():
|
|
10 |
<li>Item 3</li>
|
11 |
<a href="test">aaa</a>
|
12 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
"""
|
14 |
return html_content
|
15 |
|
|
|
10 |
<li>Item 3</li>
|
11 |
<a href="test">aaa</a>
|
12 |
</ul>
|
13 |
+
<script type="module">
|
14 |
+
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/chat.bundle.es.js';
|
15 |
+
|
16 |
+
createChat({
|
17 |
+
webhookUrl: 'https://kenken999-nodex-n8n-domain.hf.space/webhook/6264497c-6231-4023-abef-82b86f8e298b/chat',
|
18 |
+
webhookConfig: {
|
19 |
+
method: 'POST',
|
20 |
+
headers: {}
|
21 |
+
},
|
22 |
+
target: '#n8n-chat',
|
23 |
+
mode: 'window',
|
24 |
+
chatInputKey: 'chatInput',
|
25 |
+
chatSessionKey: 'sessionId',
|
26 |
+
metadata: {},
|
27 |
+
showWelcomeScreen: false,
|
28 |
+
defaultLanguage: 'en',
|
29 |
+
initialMessages: [
|
30 |
+
'質問をどうぞ Hi there! 👋',
|
31 |
+
'私の名前はリファスタアシスタントです今日は何の御用ですか??'
|
32 |
+
],
|
33 |
+
i18n: {
|
34 |
+
en: {
|
35 |
+
title: 'こんにちわリファスタアシスタントです! 👋',
|
36 |
+
subtitle: "Start a chat. We're here to help you 24/7.",
|
37 |
+
footer: '',
|
38 |
+
getStarted: 'New Conversation',
|
39 |
+
inputPlaceholder: 'Type your question..',
|
40 |
+
},
|
41 |
+
},
|
42 |
+
});
|
43 |
+
</script>
|
44 |
"""
|
45 |
return html_content
|
46 |
|