co42 HF staff commited on
Commit
ba300f2
·
verified ·
1 Parent(s): 565029d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -25,13 +25,13 @@ demo = gr.Blocks(
25
  with demo:
26
  gr.HTML(LOGO, elem_classes="logo")
27
  gr.HTML(TITLE, elem_classes="title")
28
- # ####################### HARDWARE TABS #######################
29
- # with gr.Tabs(elem_classes="tabs"):
30
- # for id, config in enumerate(configs):
31
- # with gr.TabItem(config.description, id=id):
32
- # ####################### HARDWARE DETAILS #######################
33
- # if config.detail:
34
- # gr.Markdown(config.detail, elem_classes="descriptive-text")
35
 
36
  # # ####################### CONTROL PANEL #######################
37
  # (
@@ -122,18 +122,18 @@ with demo:
122
  # leaderboard_table,
123
  # )
124
 
125
- # ####################### ABOUT TAB #######################
126
- # with gr.TabItem("About 📖", id=len(configs)):
127
- # gr.Markdown(ABOUT, elem_classes="descriptive-text")
128
- # ####################### CITATION
129
- # with gr.Row():
130
- # with gr.Accordion("📙 Citation", open=False):
131
- # citation_button = gr.Textbox(
132
- # value=CITATION_BUTTON,
133
- # label=CITATION_BUTTON_LABEL,
134
- # elem_id="citation-button",
135
- # show_copy_button=True,
136
- # )
137
 
138
  if __name__ == "__main__":
139
  demo.queue().launch(ssr_mode=False)
 
25
  with demo:
26
  gr.HTML(LOGO, elem_classes="logo")
27
  gr.HTML(TITLE, elem_classes="title")
28
+ ####################### HARDWARE TABS #######################
29
+ with gr.Tabs(elem_classes="tabs"):
30
+ for id, config in enumerate(configs):
31
+ with gr.TabItem(config.description, id=id):
32
+ ####################### HARDWARE DETAILS #######################
33
+ if config.detail:
34
+ gr.Markdown(config.detail, elem_classes="descriptive-text")
35
 
36
  # # ####################### CONTROL PANEL #######################
37
  # (
 
122
  # leaderboard_table,
123
  # )
124
 
125
+ ####################### ABOUT TAB #######################
126
+ with gr.TabItem("About 📖", id=len(configs)):
127
+ gr.Markdown(ABOUT, elem_classes="descriptive-text")
128
+ ####################### CITATION
129
+ with gr.Row():
130
+ with gr.Accordion("📙 Citation", open=False):
131
+ citation_button = gr.Textbox(
132
+ value=CITATION_BUTTON,
133
+ label=CITATION_BUTTON_LABEL,
134
+ elem_id="citation-button",
135
+ show_copy_button=True,
136
+ )
137
 
138
  if __name__ == "__main__":
139
  demo.queue().launch(ssr_mode=False)