rahgadda commited on
Commit
62cdfb3
·
1 Parent(s): 23d458f

Initial Draft

Browse files
Files changed (1) hide show
  1. app.py +17 -3
app.py CHANGED
@@ -1,5 +1,18 @@
1
  import streamlit as st
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  st.set_page_config(layout='wide')
4
 
5
  # Title
@@ -10,12 +23,13 @@ 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_button = st.button("Generate Data")
16
 
17
  # Display Input in single Layout
18
  llm_input_text = st.text_area(label="Enter your message", height=400)
19
 
20
  # Display Output in single Layout
21
- llm_output_text = st.text_area("Generate Output", height=400)
 
 
1
  import streamlit as st
2
 
3
+ ################################
4
+ ####### Generic functions ######
5
+ ################################
6
+
7
+ def option_change():
8
+ llm_output_text=""
9
+
10
+ def button_clicked():
11
+ llm_output_text="Button Clicked"
12
+
13
+ ################################
14
+ ####### Display of data ########
15
+ ################################
16
  st.set_page_config(layout='wide')
17
 
18
  # Title
 
23
 
24
  with col1:
25
  options = ["Sentiment Analysis", "Zero-shot Classification", "Text Generation","Mask Filling","Named Entity Recognition","Question & Answering","Summarization","English to French Translation"]
26
+ llm_action_type = st.selectbox("Select LLM Tasktype", options, on_change=option_change)
27
  with col3:
28
+ llm_button = st.button("Generate Data",on_click=button_clicked)
29
 
30
  # Display Input in single Layout
31
  llm_input_text = st.text_area(label="Enter your message", height=400)
32
 
33
  # Display Output in single Layout
34
+ llm_output_text = st.text_area("Generate Output", height=400)
35
+