Toan2004-ai commited on
Commit
8f4aedc
·
1 Parent(s): aaf398b

add readme config

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ def parse_energy_plan(text_input):
6
  from engine import final_process_eme_technical_guided
7
 
8
  if not text_input or not text_input.strip():
9
- return json.dumps({"error": "Đầu vào không được để trống"}, indent=2)
10
 
11
  try:
12
  final_input = text_input
@@ -36,10 +36,10 @@ def parse_energy_plan(text_input):
36
 
37
  demo = gr.Interface(
38
  fn=parse_energy_plan,
39
- inputs=gr.Textbox(label="Energy Plan Input", placeholder="Dán dữ liệu đầu vào tại đây...", lines=10),
40
  outputs=gr.Code(label="Extracted Schema", language="json"),
41
  title="Volta Energy Plan Parser",
42
- description="Giao diện kiểm thử trích xuất dữ liệu năng lượng."
43
  )
44
 
45
  if __name__ == "__main__":
 
6
  from engine import final_process_eme_technical_guided
7
 
8
  if not text_input or not text_input.strip():
9
+ return json.dumps({"error": "Input cannot be empty"}, indent=2)
10
 
11
  try:
12
  final_input = text_input
 
36
 
37
  demo = gr.Interface(
38
  fn=parse_energy_plan,
39
+ inputs=gr.Textbox(label="Energy Plan Input", placeholder="Paste the energy plan JSON here...", lines=10),
40
  outputs=gr.Code(label="Extracted Schema", language="json"),
41
  title="Volta Energy Plan Parser",
42
+ description="Energy Data Extraction Testing Interface."
43
  )
44
 
45
  if __name__ == "__main__":