Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,17 +38,17 @@ def main():
|
|
| 38 |
with st.spinner("Loading model..."):
|
| 39 |
time.sleep(5)
|
| 40 |
# load the model TODO
|
| 41 |
-
|
| 42 |
st.markdown("# LLM Notebook")
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
|
| 53 |
if __name__ == "__main__":
|
| 54 |
main()
|
|
|
|
| 38 |
with st.spinner("Loading model..."):
|
| 39 |
time.sleep(5)
|
| 40 |
# load the model TODO
|
| 41 |
+
|
| 42 |
st.markdown("# LLM Notebook")
|
| 43 |
+
with st.form('my_form'):
|
| 44 |
+
text = st.text_area('Prompt:', placeholder='Please, type your question and submit. ')
|
| 45 |
+
print("tetx", text)
|
| 46 |
+
submitted = st.form_submit_button('Submit')
|
| 47 |
+
if submitted:
|
| 48 |
+
with st.spinner("Analyzing..."):
|
| 49 |
+
time.sleep(4)
|
| 50 |
+
st.subheader("You predd submit", anchor=None, *, help=None, divider=False)
|
| 51 |
+
|
| 52 |
|
| 53 |
if __name__ == "__main__":
|
| 54 |
main()
|