UQ commited on
Commit
f90eb59
·
verified ·
1 Parent(s): e098e64

Upload 3 files

Browse files
Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -16,19 +16,7 @@ def predict_sentiment(text):
16
  return sentiment
17
 
18
 
19
- custom_css = """
20
- body, .gradio-container, p, h1, h2, h3, h4, h5, h6, label {
21
- color: black !important;
22
- }
23
- body { background-color: #FFF9C4; }
24
- h1, h2 { color: #333333; font-weight: bold; } /* Dark title */
25
- .gradio-container { background: #FFF9C4; border-radius: 10px; padding: 20px; } /* Pastel pink container */
26
- input, textarea { background: #AFCBFF; border: none; border-radius: 5px; } /* Light pastel blue */
27
- button { background: #B5EAD7; color: black; border: none; border-radius: 8px; padding: 10px; font-size: 16px; } /* Pastel green */
28
- """
29
-
30
-
31
- with gr.Blocks(css=custom_css) as app:
32
  gr.Markdown("<h1 style='text-align:center; color:black;'>Sentiment Analysis 💬</h1>")
33
  gr.Markdown("<p style='text-align:center; color:black;'>Enter a sentence to check if it's positive or negative.</p>")
34
 
 
16
  return sentiment
17
 
18
 
19
+ with gr.Blocks() as app:
 
 
 
 
 
 
 
 
 
 
 
 
20
  gr.Markdown("<h1 style='text-align:center; color:black;'>Sentiment Analysis 💬</h1>")
21
  gr.Markdown("<p style='text-align:center; color:black;'>Enter a sentence to check if it's positive or negative.</p>")
22