rahgadda commited on
Commit
71785fb
·
1 Parent(s): 4e64ad0

Initial Draft

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