Spaces:
Runtime error
Runtime error
fix json
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
HTML = "<!-- Include stylesheet -->\n<link href=\"https://cdn.quilljs.com/1.3.6/quill.snow.css\" rel=\"stylesheet\">\n\n<!-- Create the editor container -->\n<div id=\"editor\">\n <p>Hello World!</p>\n <p>Some initial <strong>bold</strong> text</p>\n <p><br></p>\n</div>\n\n<!-- Include the Quill library -->\n<script src=\"https://cdn.quilljs.com/1.3.6/quill.js\"></script>\n\n<!-- Initialize Quill editor -->\n<script>\n var quill = new Quill('#editor', {\n theme: 'snow'\n });\n</script>"
|
5 |
|
6 |
def greet(name):
|
7 |
-
return HTML,
|
8 |
|
9 |
-
iface = gr.Interface(greet, gr.Textbox(placeholder="Enter sentence here..."), ["html", "
|
10 |
iface.launch()
|
|
|
4 |
HTML = "<!-- Include stylesheet -->\n<link href=\"https://cdn.quilljs.com/1.3.6/quill.snow.css\" rel=\"stylesheet\">\n\n<!-- Create the editor container -->\n<div id=\"editor\">\n <p>Hello World!</p>\n <p>Some initial <strong>bold</strong> text</p>\n <p><br></p>\n</div>\n\n<!-- Include the Quill library -->\n<script src=\"https://cdn.quilljs.com/1.3.6/quill.js\"></script>\n\n<!-- Initialize Quill editor -->\n<script>\n var quill = new Quill('#editor', {\n theme: 'snow'\n });\n</script>"
|
5 |
|
6 |
def greet(name):
|
7 |
+
return HTML, "Hello " + name + "!!"
|
8 |
|
9 |
+
iface = gr.Interface(greet, gr.Textbox(placeholder="Enter sentence here..."), ["html", "text"])
|
10 |
iface.launch()
|