Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
iface = gr.Interface(
|
4 |
-
fn=None, #
|
5 |
live=True,
|
6 |
title="Teachable Machine Image Model",
|
7 |
description="Webcam-based image classification using Teachable Machine",
|
8 |
inputs=[],
|
9 |
-
outputs=gr.
|
10 |
)
|
11 |
|
12 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
iface = gr.Interface(
|
4 |
+
fn=None, # この関数はHTMLファイルによって定義される
|
5 |
live=True,
|
6 |
title="Teachable Machine Image Model",
|
7 |
description="Webcam-based image classification using Teachable Machine",
|
8 |
inputs=[],
|
9 |
+
outputs=gr.File("gr/index.html"),
|
10 |
)
|
11 |
|
12 |
iface.launch()
|