rahgadda commited on
Commit
487a937
·
1 Parent(s): 5ccab46

Initial Draft

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -1,7 +1,20 @@
1
  import streamlit as st
2
 
 
 
3
  # Title
4
  st.title("LLM Basics Demo - with Huggingface Pipeline()")
5
 
6
- options = ["Sentiment Analysis", "Zero-shot Classification", "Text Generation","Mask Filling","Named Entity Recognition","Question & Answering","Summarization","English to French Translation"]
7
- text_area = st.text_area("Enter your message", "")
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ st.set_page_config(layout='wide')
4
+
5
  # Title
6
  st.title("LLM Basics Demo - with Huggingface Pipeline()")
7
 
8
+ # 3 Column Layout
9
+ col1, col2, col3 = st.columns(3)
10
+
11
+ with col1:
12
+ options = ["Sentiment Analysis", "Zero-shot Classification", "Text Generation","Mask Filling","Named Entity Recognition","Question & Answering","Summarization","English to French Translation"]
13
+ llm_action_type = st.selectbox("Select an option", options)
14
+ with col3:
15
+ llm_input_text = st.text_area("Generated Data", "")
16
+
17
+ # Display Output in single Layout
18
+ col4 = st.columns(1)
19
+ with col4:
20
+ llm_input_text = st.text_area("Enter your message", "")