Googolplexic commited on
Commit
75e50f7
·
1 Parent(s): 577c06f

Refactor README tab to display static content and update tab title for clarity

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -183,20 +183,16 @@ retrieve_tab = gr.Interface(
183
  ],
184
  )
185
 
186
- # README Tab
187
- readme_tab = gr.Interface(
188
- fn=load_readme,
189
- inputs=[],
190
- outputs=gr.Markdown(label="Documentation/Readme", value=load_readme()),
191
- title="Documentation & Guide",
192
- description="Complete documentation and usage guide for Hermes API Monitoring tool. This includes setup instructions, workflow examples, and troubleshooting information.",
193
- flagging_mode="auto",
194
- )
195
 
196
  # Create tabbed interface
197
  demo = gr.TabbedInterface(
198
  [validation_tab, scheduler_tab, retrieve_tab, readme_tab],
199
- ["Validate & Store", "Activate Scheduler", "Retrieve Data", "Documentation"],
200
  title="Hermes - Automated Asynchronous REST API Monitoring",
201
  )
202
 
 
183
  ],
184
  )
185
 
186
+ # README Tab - Static display only
187
+ with gr.Blocks() as readme_tab:
188
+ gr.Markdown("# Documentation/Readme")
189
+
190
+ gr.Markdown(load_readme())
 
 
 
 
191
 
192
  # Create tabbed interface
193
  demo = gr.TabbedInterface(
194
  [validation_tab, scheduler_tab, retrieve_tab, readme_tab],
195
+ ["Validate & Store", "Activate Scheduler", "Retrieve Data", "Documentation/Readme"],
196
  title="Hermes - Automated Asynchronous REST API Monitoring",
197
  )
198