Spaces:
Runtime error
Runtime error
Commit
·
63deb6d
1
Parent(s):
98e102c
Update app.py
Browse files
app.py
CHANGED
@@ -40,5 +40,8 @@ if example_2:
|
|
40 |
st.markdown("## "+output_text)
|
41 |
if button:
|
42 |
with st.spinner('In progress.......'):
|
43 |
-
|
|
|
|
|
|
|
44 |
st.markdown("## "+output_text)
|
|
|
40 |
st.markdown("## "+output_text)
|
41 |
if button:
|
42 |
with st.spinner('In progress.......'):
|
43 |
+
if textbox:
|
44 |
+
output_text = model(textbox)[0]["generated_text"]
|
45 |
+
else:
|
46 |
+
output_text = " "
|
47 |
st.markdown("## "+output_text)
|