Tonic commited on
Commit
5a9d3d5
·
verified ·
1 Parent(s): ac54acf

Update callbackmanager.py

Browse files
Files changed (1) hide show
  1. callbackmanager.py +3 -3
callbackmanager.py CHANGED
@@ -875,7 +875,7 @@ cyberpunk_theme = gr.themes.Monochrome(
875
  with gr.Blocks(theme=cyberpunk_theme) as demo: # Apply the theme here
876
  gr.Markdown("<h1 style='color:#00FFFF; text-shadow: 0 0 5px #00FFFF;'>Discharge Guard <span style='color:#FF00FF; text-shadow: 0 0 5px #FF00FF;'>Cyber</span></h1>") # Cyberpunk Title
877
 
878
- with gr.Tab("Authenticate with MeldRx", elem_classes="cyberpunk-tab", js=True): # Optional: Class for tab styling
879
  gr.Markdown("<h2 style='color:#00FFFF; text-shadow: 0 0 3px #00FFFF;'>SMART on FHIR Authentication</h2>") # Neon Tab Header
880
  auth_url_output = gr.Textbox(label="Authorization URL", value=CALLBACK_MANAGER.get_auth_url(), interactive=False)
881
  gr.Markdown("<p style='color:#A9A9A9;'>Copy the URL above, open it in a browser, log in, and paste the <span style='color:#00FFFF;'>entire redirected URL</span> from your browser's address bar below.</p>") # Subdued instructions with neon highlight
@@ -975,7 +975,7 @@ with gr.Blocks(theme=cyberpunk_theme) as demo: # Apply the theme here
975
  return f"<p style='color:#FF6347;'>Error fetching patient data: {str(e)}</p>" # Tomato Error
976
 
977
 
978
- with gr.Tab("Discharge Form", elem_classes="cyberpunk-tab", js=True): # Optional: Class for tab styling
979
  gr.Markdown("<h2 style='color:#00FFFF; text-shadow: 0 0 3px #00FFFF;'>Patient Details</h2>") # Neon Tab Header
980
  with gr.Row(js=True):
981
  first_name = gr.Textbox(label="First Name")
@@ -1194,7 +1194,7 @@ with gr.Blocks(theme=cyberpunk_theme) as demo: # Apply the theme here
1194
  )
1195
 
1196
  with gr.Tab(
1197
- "One-Click Discharge Paper (AI)", elem_classes="cyberpunk-tab", js=True
1198
  ): # New Tab for One-Click Discharge Paper with AI, styled
1199
  gr.Markdown("<h2 style='color:#00FFFF; text-shadow: 0 0 3px #00FFFF;'>One-Click Medical Discharge Paper Generation with AI Content</h2>") # Neon Tab Header
1200
  one_click_ai_pdf_button = gr.Button(
 
875
  with gr.Blocks(theme=cyberpunk_theme) as demo: # Apply the theme here
876
  gr.Markdown("<h1 style='color:#00FFFF; text-shadow: 0 0 5px #00FFFF;'>Discharge Guard <span style='color:#FF00FF; text-shadow: 0 0 5px #FF00FF;'>Cyber</span></h1>") # Cyberpunk Title
877
 
878
+ with gr.Tab("Authenticate with MeldRx", elem_classes="cyberpunk-tab"): # Optional: Class for tab styling
879
  gr.Markdown("<h2 style='color:#00FFFF; text-shadow: 0 0 3px #00FFFF;'>SMART on FHIR Authentication</h2>") # Neon Tab Header
880
  auth_url_output = gr.Textbox(label="Authorization URL", value=CALLBACK_MANAGER.get_auth_url(), interactive=False)
881
  gr.Markdown("<p style='color:#A9A9A9;'>Copy the URL above, open it in a browser, log in, and paste the <span style='color:#00FFFF;'>entire redirected URL</span> from your browser's address bar below.</p>") # Subdued instructions with neon highlight
 
975
  return f"<p style='color:#FF6347;'>Error fetching patient data: {str(e)}</p>" # Tomato Error
976
 
977
 
978
+ with gr.Tab("Discharge Form", elem_classes="cyberpunk-tab"): # Optional: Class for tab styling
979
  gr.Markdown("<h2 style='color:#00FFFF; text-shadow: 0 0 3px #00FFFF;'>Patient Details</h2>") # Neon Tab Header
980
  with gr.Row(js=True):
981
  first_name = gr.Textbox(label="First Name")
 
1194
  )
1195
 
1196
  with gr.Tab(
1197
+ "One-Click Discharge Paper (AI)", elem_classes="cyberpunk-tab"
1198
  ): # New Tab for One-Click Discharge Paper with AI, styled
1199
  gr.Markdown("<h2 style='color:#00FFFF; text-shadow: 0 0 3px #00FFFF;'>One-Click Medical Discharge Paper Generation with AI Content</h2>") # Neon Tab Header
1200
  one_click_ai_pdf_button = gr.Button(