kidwaiaun commited on
Commit
edb6402
·
verified ·
1 Parent(s): 583ec57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,7 +13,7 @@ def tab1_content():
13
  gr.Button("Submit Column 2")
14
 
15
  def tab2_content():
16
- def display_yaml():
17
  try:
18
  file_name = "config/data/agents.yaml"
19
  with open(file_name, 'r') as file:
@@ -30,10 +30,10 @@ def tab2_content():
30
  except Exception as e:
31
  return f"Error: {str(e)}"
32
 
33
- gr.HTML(value=display_yaml())
34
 
35
  def tab3_content():
36
- def display_yaml():
37
  try:
38
  file_name = "config/data/tasks.yaml"
39
  with open(file_name, 'r') as file:
 
13
  gr.Button("Submit Column 2")
14
 
15
  def tab2_content():
16
+ def display_agent_data():
17
  try:
18
  file_name = "config/data/agents.yaml"
19
  with open(file_name, 'r') as file:
 
30
  except Exception as e:
31
  return f"Error: {str(e)}"
32
 
33
+ gr.HTML(value=display_agent_data())
34
 
35
  def tab3_content():
36
+ def display_task_data():
37
  try:
38
  file_name = "config/data/tasks.yaml"
39
  with open(file_name, 'r') as file: