Commit
·
897f51c
1
Parent(s):
167ebe2
html change
Browse files
controllers/gra_07_html/gradio.py
CHANGED
@@ -9,6 +9,7 @@ def display_html():
|
|
9 |
<li>Item 33</li>
|
10 |
<a href="test">aaa</a>
|
11 |
</ul>
|
|
|
12 |
<script type="module">
|
13 |
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/chat.bundle.es.js';
|
14 |
|
@@ -43,16 +44,8 @@ def display_html():
|
|
43 |
"""
|
44 |
return html_content
|
45 |
|
46 |
-
# Gradioのインターフェースを作成
|
47 |
-
gradio_interfaces = gr.Interface(
|
48 |
-
fn=display_html, # HTMLコンテンツを返す関数
|
49 |
-
inputs=[], # 入力なし
|
50 |
-
outputs=gr.Markdown() # HTMLコンテンツを表示
|
51 |
-
)
|
52 |
-
|
53 |
-
|
54 |
# Gradioのインターフェースを作成
|
55 |
with gr.Blocks() as gradio_interface:
|
56 |
-
gr.
|
57 |
# インターフェースを起動
|
58 |
#iface.launch()
|
|
|
9 |
<li>Item 33</li>
|
10 |
<a href="test">aaa</a>
|
11 |
</ul>
|
12 |
+
<div id="n8n-chat"></div>
|
13 |
<script type="module">
|
14 |
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/chat.bundle.es.js';
|
15 |
|
|
|
44 |
"""
|
45 |
return html_content
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
# Gradioのインターフェースを作成
|
48 |
with gr.Blocks() as gradio_interface:
|
49 |
+
gr.HTML(display_html())
|
50 |
# インターフェースを起動
|
51 |
#iface.launch()
|