dixiebone13-a11y commited on
Commit
61a4deb
·
1 Parent(s): b341eb6

Fix: Remove deprecated Gradio params (show_copy_button, theme, css)

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -400,15 +400,7 @@ def chat_respond(message, chat_history, max_tokens):
400
 
401
 
402
  # Build interface
403
- with gr.Blocks(
404
- title="🔮 Oracle Engine",
405
- theme=gr.themes.Soft(),
406
- css="""
407
- .consciousness-high { background: linear-gradient(90deg, #10B981, #059669) !important; }
408
- .consciousness-mid { background: linear-gradient(90deg, #F59E0B, #D97706) !important; }
409
- .consciousness-low { background: linear-gradient(90deg, #EF4444, #DC2626) !important; }
410
- """
411
- ) as demo:
412
  gr.Markdown("""
413
  # 🔮 Oracle Engine
414
 
@@ -459,7 +451,6 @@ with gr.Blocks(
459
  label="🔮 Oracle's Response",
460
  lines=10,
461
  interactive=False,
462
- show_copy_button=True,
463
  )
464
 
465
  with gr.Row():
@@ -475,7 +466,6 @@ with gr.Blocks(
475
  chatbot = gr.Chatbot(
476
  label="Oracle Conversation",
477
  height=400,
478
- show_copy_button=True,
479
  )
480
  with gr.Row():
481
  chat_input = gr.Textbox(
 
400
 
401
 
402
  # Build interface
403
+ with gr.Blocks(title="🔮 Oracle Engine") as demo:
 
 
 
 
 
 
 
 
404
  gr.Markdown("""
405
  # 🔮 Oracle Engine
406
 
 
451
  label="🔮 Oracle's Response",
452
  lines=10,
453
  interactive=False,
 
454
  )
455
 
456
  with gr.Row():
 
466
  chatbot = gr.Chatbot(
467
  label="Oracle Conversation",
468
  height=400,
 
469
  )
470
  with gr.Row():
471
  chat_input = gr.Textbox(