j-higgins commited on
Commit
3491122
·
unverified ·
1 Parent(s): 14fbbe8

Update app.py

Browse files

fixed server = app.server requirements

Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -14,6 +14,10 @@ import threading
14
 
15
  warnings.filterwarnings("ignore", message="The sentencepiece tokenizer")
16
 
 
 
 
 
17
  server = app.server
18
 
19
  # Configuration for GLiNER integration
@@ -196,10 +200,6 @@ def batch_process_keywords(keywords, batch_size=32):
196
 
197
  return processed_data
198
 
199
- # Initialize Dash app with Bootstrap theme and Font Awesome
200
- external_stylesheets = [dbc.themes.DARKLY, 'https://use.fontawesome.com/releases/v5.8.1/css/all.css']
201
- app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
202
-
203
  # Main layout of the dashboard
204
  app.layout = dbc.Container([
205
  dbc.NavbarSimple(
@@ -499,4 +499,4 @@ def download_csv(n_clicks, processed_data):
499
  return dict(content=csv_string, filename="KeyIntentNER-T_keyword_analysis.csv")
500
 
501
  if __name__ == '__main__':
502
- app.run_server(debug=False, host='0.0.0.0', port=8080)
 
14
 
15
  warnings.filterwarnings("ignore", message="The sentencepiece tokenizer")
16
 
17
+ # Initialize Dash app with Bootstrap theme and Font Awesome
18
+ external_stylesheets = [dbc.themes.DARKLY, 'https://use.fontawesome.com/releases/v5.8.1/css/all.css']
19
+ app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
20
+
21
  server = app.server
22
 
23
  # Configuration for GLiNER integration
 
200
 
201
  return processed_data
202
 
 
 
 
 
203
  # Main layout of the dashboard
204
  app.layout = dbc.Container([
205
  dbc.NavbarSimple(
 
499
  return dict(content=csv_string, filename="KeyIntentNER-T_keyword_analysis.csv")
500
 
501
  if __name__ == '__main__':
502
+ app.run_server(debug=False, host='0.0.0.0', port=8080)