Mahbodez commited on
Commit
fcdaab2
1 Parent(s): 068d1e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -3,12 +3,14 @@ import interface
3
  import utils
4
  import treegraph as tg
5
  import logger as lg
6
-
7
  system_prompt = """
8
  You are a critical AI radiology assistant.
9
  You are helping a radiologist correctly fill out a radiology report.
10
  The report is regarding a Knee MRI.
11
  """
 
 
12
 
13
  graph, nodes_dict = tg.build_tree_from_file("knee_template.json")
14
  report_interface = interface.ReportChecklistInterface(
@@ -82,4 +84,4 @@ with gr.Blocks(theme="soft") as demo:
82
  )
83
  quit_btn.click(fn=quit_fn, outputs=[results_textbox])
84
 
85
- demo.launch(auth=("admin", "radiologyreport"))
 
3
  import utils
4
  import treegraph as tg
5
  import logger as lg
6
+ import os
7
  system_prompt = """
8
  You are a critical AI radiology assistant.
9
  You are helping a radiologist correctly fill out a radiology report.
10
  The report is regarding a Knee MRI.
11
  """
12
+ username = os.environ.get("user")
13
+ passwd = os.environ.get("pass")
14
 
15
  graph, nodes_dict = tg.build_tree_from_file("knee_template.json")
16
  report_interface = interface.ReportChecklistInterface(
 
84
  )
85
  quit_btn.click(fn=quit_fn, outputs=[results_textbox])
86
 
87
+ demo.launch(auth=(username, passwd))