teatwots commited on
Commit
fd730e4
ยท
verified ยท
1 Parent(s): ee75c88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -118,9 +118,12 @@ def main(text):
118
  word_data_str = "\n".join([f"{i+1}. {word}: {pos} {translation}, ex) {example_sentence} ๋™์˜์–ด: {synonyms}." for i, (word, freq, translation, pos, example_sentence, synonyms) in enumerate(word_data)])
119
  return wordcloud_image, word_data_str
120
 
121
- # Gradio interface
122
  css = """
123
  <style>
 
 
 
124
  .gr-button {
125
  background-color: blue !important;
126
  border-color: blue !important;
@@ -128,6 +131,7 @@ css = """
128
  </style>
129
  """
130
 
 
131
  interface = gr.Interface(
132
  fn=main,
133
  inputs="text",
 
118
  word_data_str = "\n".join([f"{i+1}. {word}: {pos} {translation}, ex) {example_sentence} ๋™์˜์–ด: {synonyms}." for i, (word, freq, translation, pos, example_sentence, synonyms) in enumerate(word_data)])
119
  return wordcloud_image, word_data_str
120
 
121
+ # Custom CSS for the Gradio interface
122
  css = """
123
  <style>
124
+ body {
125
+ background-color: skyblue !important;
126
+ }
127
  .gr-button {
128
  background-color: blue !important;
129
  border-color: blue !important;
 
131
  </style>
132
  """
133
 
134
+ # Gradio interface
135
  interface = gr.Interface(
136
  fn=main,
137
  inputs="text",