Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
iface = gr.Interface(
|
4 |
+
fn=None, # This function will be defined by the HTML file
|
5 |
+
live=True,
|
6 |
+
title="Teachable Machine Image Model",
|
7 |
+
description="Webcam-based image classification using Teachable Machine",
|
8 |
+
inputs=[],
|
9 |
+
outputs=gr.HTMLFile("gr/index.html"),
|
10 |
+
)
|
11 |
+
|
12 |
+
iface.launch()
|