teatwots commited on
Commit
a7b7f1a
·
verified ·
1 Parent(s): 8e83d50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -13
app.py CHANGED
@@ -119,6 +119,15 @@ def main(text):
119
  return wordcloud_image, word_data_str
120
 
121
  # Gradio interface
 
 
 
 
 
 
 
 
 
122
  interface = gr.Interface(
123
  fn=main,
124
  inputs="text",
@@ -128,16 +137,5 @@ interface = gr.Interface(
128
  theme="default"
129
  )
130
 
131
- # Add custom CSS using HTML block
132
- def add_custom_css():
133
- custom_css = """
134
- <style>
135
- .gr-button {
136
- background-color: blue !important;
137
- border-color: blue !important;
138
- }
139
- </style>
140
- """
141
- return gr.HTML(custom_css)
142
-
143
- interface.launch(share=True, inline=True, inline_block=add_custom_css)
 
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;
127
+ }
128
+ </style>
129
+ """
130
+
131
  interface = gr.Interface(
132
  fn=main,
133
  inputs="text",
 
137
  theme="default"
138
  )
139
 
140
+ interface.launch()
141
+ print(css) # Print the CSS to include it in the interface