redhairedshanks1 commited on
Commit
ffafd0f
·
1 Parent(s): 1427592

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -446,6 +446,7 @@ def chatbot_response_streaming(message: str, history: List, session_id: str, fil
446
  # GRADIO UI
447
  # ========================
448
 
 
449
  with gr.Blocks(title="MasterLLM v2.0 - AI Pipeline Orchestrator") as demo:
450
  gr.Markdown("""
451
  # 🤖 MasterLLM v2.0 - AI Pipeline Orchestrator
@@ -456,22 +457,6 @@ with gr.Blocks(title="MasterLLM v2.0 - AI Pipeline Orchestrator") as demo:
456
  """)
457
 
458
  # State management
459
- session_id_state = gr.State(value=create_new_session())
460
- file_state = gr.State(value=None)
461
-
462
- with gr.Row():
463
- with gr.Column(scale=3):
464
- # Chat interface
465
- chatbot = gr.Chatbot(
466
- height=650,
467
- show_label=False,
468
- avatar_images=(None, "🤖"),
469
- )
470
-
471
- # Text input
472
- msg = gr.Textbox(
473
- placeholder="💬 Type your instruction... (e.g., 'extract text from pages 1-5 and summarize')",
474
- show_label=False,
475
  lines=2,
476
  max_lines=4,
477
  container=False,
 
446
  # GRADIO UI
447
  # ========================
448
 
449
+ # Simple Blocks initialization for HF Spaces compatibility (older Gradio version)
450
  with gr.Blocks(title="MasterLLM v2.0 - AI Pipeline Orchestrator") as demo:
451
  gr.Markdown("""
452
  # 🤖 MasterLLM v2.0 - AI Pipeline Orchestrator
 
457
  """)
458
 
459
  # State management
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
  lines=2,
461
  max_lines=4,
462
  container=False,