Spaces:
Sleeping
Sleeping
mriusero
commited on
Commit
·
8346afa
1
Parent(s):
3d63627
doc
Browse files- README.md +7 -3
- app.py +3 -3
- data/status.json +1 -28
- src/ui/sidebar.py +3 -4
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: ⚡️
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
@@ -8,7 +8,11 @@ sdk_version: 5.33.0
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
-
short_description:
|
|
|
|
|
|
|
|
|
12 |
---
|
13 |
|
14 |
-
An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index)
|
|
|
1 |
---
|
2 |
+
title: Efficiency Agent
|
3 |
emoji: ⚡️
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
+
short_description: A Smarter Efficiency Across Industries !
|
12 |
+
tags:
|
13 |
+
- agent-demo-track
|
14 |
+
- agent
|
15 |
+
- mistral-ai
|
16 |
---
|
17 |
|
18 |
+
An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index).
|
app.py
CHANGED
@@ -22,11 +22,11 @@ STATE = {
|
|
22 |
with gr.Blocks(theme=custom_theme) as demo:
|
23 |
|
24 |
# HEADER
|
25 |
-
gr.Markdown("#
|
26 |
-
gr.Markdown("### *
|
27 |
gr.Markdown(
|
28 |
"""
|
29 |
-
This demo showcases the capabilities of
|
30 |
You can interact with the chatbot to get insights and assistance on production-related queries.
|
31 |
"""
|
32 |
)
|
|
|
22 |
with gr.Blocks(theme=custom_theme) as demo:
|
23 |
|
24 |
# HEADER
|
25 |
+
gr.Markdown("# Efficiency Agent ⚡️️")
|
26 |
+
gr.Markdown("### *Smarter Efficiency. Across Industries & Services !*")
|
27 |
gr.Markdown(
|
28 |
"""
|
29 |
+
This demo showcases the capabilities of an AI-Agent designed to assist in production processes.
|
30 |
You can interact with the chatbot to get insights and assistance on production-related queries.
|
31 |
"""
|
32 |
)
|
data/status.json
CHANGED
@@ -1,28 +1 @@
|
|
1 |
-
{
|
2 |
-
"opening_time": "0 days 00:28:14",
|
3 |
-
"required_time": "0 days 00:28:14",
|
4 |
-
"unplanned_stop_time": "0 days 00:23:00",
|
5 |
-
"operating_time": "0 days 00:05:14",
|
6 |
-
"net_time": "0 days 00:05:14",
|
7 |
-
"useful_time": "0 days 00:04:53",
|
8 |
-
"quality_rate": 93.31,
|
9 |
-
"quality_rate_tool_1": 96.18,
|
10 |
-
"quality_rate_tool_2": 91.67,
|
11 |
-
"operating_rate": 100.0,
|
12 |
-
"availability_rate": 18.54,
|
13 |
-
"OEE": 17.3,
|
14 |
-
"MTBF": "0 days 00:02:37",
|
15 |
-
"MTTR": "0 days 00:11:30",
|
16 |
-
"tool_1_cp_pos": 0.673,
|
17 |
-
"tool_1_cpk_pos": 0.6552,
|
18 |
-
"tool_1_cp_ori": 0.7081,
|
19 |
-
"tool_1_cpk_ori": 0.6937,
|
20 |
-
"tool_2_cp_pos": 0.4325,
|
21 |
-
"tool_2_cpk_pos": 0.4278,
|
22 |
-
"tool_2_cp_ori": 0.6556,
|
23 |
-
"tool_2_cpk_ori": 0.6436,
|
24 |
-
"all_cp_pos": 0.5155,
|
25 |
-
"all_cpk_pos": 0.5115,
|
26 |
-
"all_cp_ori": 0.681,
|
27 |
-
"all_cpk_ori": 0.6803
|
28 |
-
}
|
|
|
1 |
+
{}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/ui/sidebar.py
CHANGED
@@ -7,15 +7,14 @@ def sidebar_ui(state, width=700, visible=True):
|
|
7 |
gr.Markdown("# Ask Agent")
|
8 |
gr.Markdown(
|
9 |
"""
|
10 |
-
Ask questions about production
|
11 |
The chatbot will provide insights and assistance based on the current production data.
|
12 |
"""
|
13 |
)
|
14 |
gr.Markdown(
|
15 |
"""
|
16 |
1. **Play** - Start the production simulation and generate synthetic data.
|
17 |
-
2. **Ask
|
18 |
-
3. **Ask for Help** - Get assistance with any issues or queries related to production.
|
19 |
|
20 |
Note: you can click on `Pause` or `Reset` to control the production simulation.
|
21 |
"""
|
@@ -52,7 +51,7 @@ def sidebar_ui(state, width=700, visible=True):
|
|
52 |
)
|
53 |
sessions_state = gr.JSON(
|
54 |
label="Sessions State",
|
55 |
-
visible=
|
56 |
value=state.value,
|
57 |
)
|
58 |
state.change(
|
|
|
7 |
gr.Markdown("# Ask Agent")
|
8 |
gr.Markdown(
|
9 |
"""
|
10 |
+
Ask questions about production quality, efficiency, or issues.
|
11 |
The chatbot will provide insights and assistance based on the current production data.
|
12 |
"""
|
13 |
)
|
14 |
gr.Markdown(
|
15 |
"""
|
16 |
1. **Play** - Start the production simulation and generate synthetic data.
|
17 |
+
2. **Ask Agent** - Interact with the chatbot to get insights on production process, any issues and more.
|
|
|
18 |
|
19 |
Note: you can click on `Pause` or `Reset` to control the production simulation.
|
20 |
"""
|
|
|
51 |
)
|
52 |
sessions_state = gr.JSON(
|
53 |
label="Sessions State",
|
54 |
+
visible=False,
|
55 |
value=state.value,
|
56 |
)
|
57 |
state.change(
|