SarowarSaurav commited on
Commit
a28b149
·
verified ·
1 Parent(s): 82c0419

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -2534,9 +2534,9 @@ def chatbot_interface(acronym):
2534
  else:
2535
  closest_match = difflib.get_close_matches(acronym, knowledge_base.keys(), n=1)
2536
  if closest_match:
2537
- response = f"No exact match found. Did you mean '{closest_match[0]}'?"
2538
  else:
2539
- response = "Not found in the BATCCAPEDIA"
2540
  return response
2541
 
2542
  # Create the Gradio interface
@@ -2547,6 +2547,9 @@ css = """
2547
  flex-direction: column;
2548
  align-items: center;
2549
  }
 
 
 
2550
  """
2551
 
2552
  # HTML content for the logo
@@ -2562,7 +2565,7 @@ with gr.Blocks(css=css) as demo:
2562
  fn=chatbot_interface,
2563
  inputs=gr.Textbox(label="Acronym", placeholder="Enter Acronym Here"),
2564
  outputs=gr.Textbox(label="Answer"),
2565
- theme='upsatwal/mlsc_tiet',
2566
  )
2567
 
2568
  demo.launch(allowed_paths=["."])
 
2534
  else:
2535
  closest_match = difflib.get_close_matches(acronym, knowledge_base.keys(), n=1)
2536
  if closest_match:
2537
+ response = f"No exact match found in BATCCAPEDIA. Did you mean '{closest_match[0]}'?"
2538
  else:
2539
+ response = "Not found in BATCCAPEDIA"
2540
  return response
2541
 
2542
  # Create the Gradio interface
 
2547
  flex-direction: column;
2548
  align-items: center;
2549
  }
2550
+ footer {
2551
+ display: none !important;
2552
+ }
2553
  """
2554
 
2555
  # HTML content for the logo
 
2565
  fn=chatbot_interface,
2566
  inputs=gr.Textbox(label="Acronym", placeholder="Enter Acronym Here"),
2567
  outputs=gr.Textbox(label="Answer"),
2568
+ theme='default',
2569
  )
2570
 
2571
  demo.launch(allowed_paths=["."])