Vineedhar commited on
Commit
b9b5d54
1 Parent(s): 8689cd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -25,14 +25,20 @@ def analyze_sentiment(text):
25
  st.set_page_config(page_title="Sentiment Analysis", layout="wide")
26
  col1, col2 = st.columns([6, 1]) # Divide the screen into two columns
27
 
 
 
 
 
 
 
28
  with col2: # Right-aligned column for the logo
29
- st.image("https://huggingface.co/spaces/orYx-models/Leadership-sentiment-analyzer/resolve/main/oryx_logo.png", width=200, use_column_width=False) # Provide the path to your company logo
30
 
31
  with col1: # Main content area
32
  st.title("Sentiment Analysis Prototype Tool by orYx Models")
33
  user_input = st.text_area("Enter text to analyze:", height=200)
34
 
35
- submit_button = st.button("Analyze:")
36
 
37
  if submit_button and user_input:
38
  sentiment, score = analyze_sentiment(user_input)
@@ -40,6 +46,4 @@ with col1: # Main content area
40
  st.write(f"Sentiment: {sentiment}")
41
  st.write(f"Confidence: {score*100:.2f}%")
42
 
43
- # Text titles below the text box
44
- st.markdown("This sentiment analysis model serves as a testing prototype, specifically developed for LDS to assess the variability and precision of OrYx Models' sentiment analysis tool.")
45
- st.markdown("All feedback gathered from LDS, including both structured and unstructured data, will be incorporated into the model to enhance its domain specificity and maximize accuracy.")
 
25
  st.set_page_config(page_title="Sentiment Analysis", layout="wide")
26
  col1, col2 = st.columns([6, 1]) # Divide the screen into two columns
27
 
28
+ # Text titles below the text box
29
+ st.markdown("This sentiment analysis model serves as a testing prototype, specifically developed for LDS to assess the variability and precision of OrYx Models' sentiment analysis tool.")
30
+ st.markdown(" ")
31
+ st.markdown("All feedback gathered from LDS, including both structured and unstructured data, will be incorporated into the model to enhance its domain specificity and maximize accuracy.")
32
+
33
+
34
  with col2: # Right-aligned column for the logo
35
+ st.image("https://huggingface.co/spaces/orYx-models/Leadership-sentiment-analyzer/resolve/main/oryx_logo%20(2).png", width=200, use_column_width=False) # Provide the path to your company logo
36
 
37
  with col1: # Main content area
38
  st.title("Sentiment Analysis Prototype Tool by orYx Models")
39
  user_input = st.text_area("Enter text to analyze:", height=200)
40
 
41
+ submit_button = st.button("Analyze")
42
 
43
  if submit_button and user_input:
44
  sentiment, score = analyze_sentiment(user_input)
 
46
  st.write(f"Sentiment: {sentiment}")
47
  st.write(f"Confidence: {score*100:.2f}%")
48
 
49
+