Edgeev commited on
Commit
e996e5e
·
verified ·
1 Parent(s): eac40f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,7 +5,7 @@ def generate_plan(role_text):
5
  try:
6
  ip = IntentProcessor(role_text)
7
  plan, meta = ip.generate_plan(return_metadata=True)
8
- return f"📜 План: {plan}\n🧠 Метаданные: {meta}"
9
  except Exception as e:
10
  return f"❌ Ошибка: {str(e)}"
11
 
@@ -14,7 +14,8 @@ demo = gr.Interface(
14
  inputs=gr.Textbox(lines=4, placeholder="Describe a role...", label="Role Description"),
15
  outputs="text",
16
  title="🧠 SAGE Plan Generator",
17
- description="Semantic extractor of behavioral plan from role prompt."
 
18
  )
19
 
20
  if __name__ == "__main__":
 
5
  try:
6
  ip = IntentProcessor(role_text)
7
  plan, meta = ip.generate_plan(return_metadata=True)
8
+ return f"📜 План: {plan}\n\n🧠 Метаданные:\n{meta}"
9
  except Exception as e:
10
  return f"❌ Ошибка: {str(e)}"
11
 
 
14
  inputs=gr.Textbox(lines=4, placeholder="Describe a role...", label="Role Description"),
15
  outputs="text",
16
  title="🧠 SAGE Plan Generator",
17
+ description="Semantic extractor of behavioral plan from role prompt.",
18
+ flagging_dir=None # Отключаем флаггинг чтобы не крашилось
19
  )
20
 
21
  if __name__ == "__main__":