chenchangliu commited on
Commit
b1de3f1
·
verified ·
1 Parent(s): 9705f70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -100,7 +100,7 @@ STATUS_TABLE = [
100
 
101
  theme = gr.themes.Soft()
102
 
103
- with gr.Blocks(theme=theme, title="LTN EfficientNet Two-Head Classifier") as demo:
104
  gr.Markdown(
105
  "# EfficientNet Two-Head Layer Trap Nest (LTN) Classifier\n"
106
  "Upload a brood-cell image crop to predict **taxon** and **developmental state**.\n"
@@ -121,7 +121,7 @@ with gr.Blocks(theme=theme, title="LTN EfficientNet Two-Head Classifier") as dem
121
  interactive=False,
122
  wrap=True,
123
  row_count=(len(STATUS_TABLE), "fixed"),
124
- col_count=(2, "fixed"),
125
  )
126
 
127
  with gr.Column(scale=1):
@@ -143,4 +143,4 @@ with gr.Blocks(theme=theme, title="LTN EfficientNet Two-Head Classifier") as dem
143
  )
144
 
145
  if __name__ == "__main__":
146
- demo.launch()
 
100
 
101
  theme = gr.themes.Soft()
102
 
103
+ with gr.Blocks(title="LTN EfficientNet Two-Head Classifier") as demo:
104
  gr.Markdown(
105
  "# EfficientNet Two-Head Layer Trap Nest (LTN) Classifier\n"
106
  "Upload a brood-cell image crop to predict **taxon** and **developmental state**.\n"
 
121
  interactive=False,
122
  wrap=True,
123
  row_count=(len(STATUS_TABLE), "fixed"),
124
+ column_count=(2, "fixed"),
125
  )
126
 
127
  with gr.Column(scale=1):
 
143
  )
144
 
145
  if __name__ == "__main__":
146
+ demo.launch(theme=theme, ssr_mode=False)