Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,12 @@ tmodel = T5ForConditionalGeneration.from_pretrained('./')
|
|
8 |
|
9 |
form = st.form("T5-form")
|
10 |
|
11 |
-
examples =["
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
"It wis great mieting with you all"
|
18 |
-
]
|
19 |
|
20 |
input_text = form.selectbox(label="Choose an example",
|
21 |
options=examples)
|
@@ -46,6 +44,6 @@ if submit:
|
|
46 |
if x in input_text.split(" "):
|
47 |
c_text = c_text + x + " "
|
48 |
else:
|
49 |
-
c_text = c_text + '<span style="font-weight:bold; color:rgb(0,255,0)
|
50 |
|
51 |
st.markdown(c_text, unsafe_allow_html=True)
|
|
|
8 |
|
9 |
form = st.form("T5-form")
|
10 |
|
11 |
+
examples = ["I will return it to yu once it is donr",
|
12 |
+
"Where os you're car?",
|
13 |
+
"Iu is going to rain",
|
14 |
+
"Feel free to raach out to me",
|
15 |
+
"Wheir do you live?",
|
16 |
+
"It wis great mieting with you all"]
|
|
|
|
|
17 |
|
18 |
input_text = form.selectbox(label="Choose an example",
|
19 |
options=examples)
|
|
|
44 |
if x in input_text.split(" "):
|
45 |
c_text = c_text + x + " "
|
46 |
else:
|
47 |
+
c_text = c_text + '<span style="font-weight:bold; color:rgb(0,255,0);">' + x + '</span>' + " "
|
48 |
|
49 |
st.markdown(c_text, unsafe_allow_html=True)
|