chrisjcc commited on
Commit
c60bbba
·
verified ·
1 Parent(s): f623632

Fixed the Gradio 6.0 compatibility issues

Browse files

- Removed css parameter from gr.Blocks() constructor (moved to launch() in Gradio 6.0)
- Removed show_copy_button=True from gr.Textbox() (not supported in Gradio 6.0)

Files changed (1) hide show
  1. app.py +3 -16
app.py CHANGED
@@ -737,20 +737,8 @@ def process_question(question: str) -> str:
737
  return query(question)
738
 
739
 
740
- # Custom CSS for professional appearance
741
- custom_css = """
742
- .gradio-container {
743
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
744
- }
745
- .output-text {
746
- font-family: 'Consolas', 'Monaco', monospace;
747
- font-size: 14px;
748
- line-height: 1.5;
749
- }
750
- """
751
-
752
- # Create the interface
753
- with gr.Blocks(css=custom_css, title="Fraud Model Explainability Assistant") as iface:
754
  gr.Markdown("""
755
  # 🔍 Fraud Model Explainability Assistant
756
 
@@ -777,8 +765,7 @@ with gr.Blocks(css=custom_css, title="Fraud Model Explainability Assistant") as
777
  with gr.Row():
778
  output = gr.Textbox(
779
  label="Analysis Results",
780
- lines=25,
781
- show_copy_button=True
782
  )
783
 
784
  gr.Markdown("### 💡 Example Questions")
 
737
  return query(question)
738
 
739
 
740
+ # Create the interface (Gradio 6.0 compatible)
741
+ with gr.Blocks(title="Fraud Model Explainability Assistant") as iface:
 
 
 
 
 
 
 
 
 
 
 
 
742
  gr.Markdown("""
743
  # 🔍 Fraud Model Explainability Assistant
744
 
 
765
  with gr.Row():
766
  output = gr.Textbox(
767
  label="Analysis Results",
768
+ lines=25
 
769
  )
770
 
771
  gr.Markdown("### 💡 Example Questions")