Spaces:
Sleeping
Sleeping
adding lots of new options
Browse files
app.py
CHANGED
@@ -1,10 +1,25 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
mf={
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
def upd(inp,cur_l,cur_d,format):
|
10 |
if not cur_l:
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
mf={
|
4 |
+
"Heading 1":"# $INP",
|
5 |
+
"Heading 2":"## $INP",
|
6 |
+
"Heading 3":"### $INP",
|
7 |
+
"Heading 4":"#### $INP",
|
8 |
+
"Heading 5":"##### $INP",
|
9 |
+
"Heading 6":"###### $INP",
|
10 |
+
"Bold":"**$INP**",
|
11 |
+
"Italics":"*$INP*",
|
12 |
+
"Strikethrough":"~~$INP~~",
|
13 |
+
"Highlight Text":"==$INP==",
|
14 |
+
"Bullet Point":"- $INP",
|
15 |
+
"Inline Code":"`$INP`",
|
16 |
+
"Code Blocks":"```$INP```",
|
17 |
+
"Block Quote":"> $INP",
|
18 |
+
"Checkbox (Unchecked)":"- [ ] $INP",
|
19 |
+
"Checkbox (Checked)":"- [x] $INP",
|
20 |
+
"Math Blocks":"$$ $INP $$",
|
21 |
+
"Add Emoji":":$INP:",
|
22 |
+
"Divider Line":"---",
|
23 |
}
|
24 |
def upd(inp,cur_l,cur_d,format):
|
25 |
if not cur_l:
|