Pisek commited on
Commit
66839d9
Β·
1 Parent(s): 87824ab

updated main UI for agentx

Browse files
Files changed (2) hide show
  1. .gitignore +2 -0
  2. src/chatbot/main.py +34 -4
.gitignore CHANGED
@@ -172,3 +172,5 @@ cython_debug/
172
 
173
  # PyPI configuration file
174
  .pypirc
 
 
 
172
 
173
  # PyPI configuration file
174
  .pypirc
175
+
176
+ graph.png
src/chatbot/main.py CHANGED
@@ -5,10 +5,40 @@ from app_interface import create_expense_register_page
5
  expense_register_page = create_expense_register_page()
6
  dashboard_page = create_dashboard_page()
7
 
8
- dashboard = gr.TabbedInterface(
9
- [expense_register_page, dashboard_page],
10
- ["expense_register", "dashboard"],
11
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  if __name__ == "__main__":
14
  dashboard.launch()
 
5
  expense_register_page = create_expense_register_page()
6
  dashboard_page = create_dashboard_page()
7
 
8
+ how_to = """
9
+ ## Hello AgentX judges
10
+
11
+ Our team is building a AI-agent-empowered platform to seamlessly connect all parties that help fight the climate change.
12
+
13
+ In the first phase, we focus on connecting between local forest-protecting communities and NGOs in Thailand πŸ‡ΉπŸ‡­.
14
+
15
+ For now, the prototype of the platform has two main components:
16
+ 1. Expense Register, where community members can submit their expense receipts to NGOs effortlessly.
17
+ 2. Dashboard, where NGOs can check project status and audit the expenses submitted by community members with AI-agent assistance and intelligence
18
+
19
+ As we are currently building other tools of the platform, we are excited to invite you to try out the prototype and appreciate your feedback.
20
+
21
+ Best regards πŸ™πŸ»,
22
+
23
+ Case Done Team
24
+
25
+ ---
26
+
27
+ ## How to use this demo:
28
+ 1. Select "Expense Register" to submit your expense receipts. You can upload an image of a receipt and the AI agent will do its task.
29
+ 2. Select "Dashboard" to check project status and audit the expenses related to the community's project.
30
+
31
+ ---
32
+ """
33
+
34
+ with gr.Blocks() as dashboard:
35
+ gr.Markdown("# Hello Earth 🌍")
36
+ with gr.Accordion("README", open=False):
37
+ gr.Markdown(how_to)
38
+ tabs = gr.TabbedInterface(
39
+ [expense_register_page, dashboard_page],
40
+ ["Expense Register", "Dashboard"],
41
+ )
42
 
43
  if __name__ == "__main__":
44
  dashboard.launch()