Files changed (1) hide show
  1. app.py +19 -6
app.py CHANGED
@@ -34,8 +34,6 @@ def process_text(keywords, stage, medical_history):
34
  print("Unknown stage parameters")
35
  raise gr.Error('Provide appropriate parameters and try again')
36
 
37
- def pasteFunctionality():
38
- print("Hello word")
39
 
40
  # Create text input components with labels
41
  input_text = gr.Textbox(lines=7, label="Sample keywords", placeholder="Enter sample keywords here")
@@ -51,15 +49,30 @@ stage_choices = [Stage.INITIAL_ASSESSMENT.value,Stage.SHORT_TERM_GOALS.value,Sta
51
 
52
  stage = gr.Dropdown(choices=stage_choices, label="Stage")
53
 
54
- # Create a button component to copy goals
55
  output_text_1 = gr.Textbox(lines=6, label="Variant 1", show_copy_button=True)
56
  output_text_2 = gr.Textbox(lines=6, label="Variant 2", show_copy_button=True)
57
  output_text_3 = gr.Textbox(lines=6, label="Variant 3", show_copy_button=True)
58
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  # Create a Gradio interface
61
- gr.Interface(fn=process_text,
62
  inputs=[input_text, stage, medical_history],
63
  outputs=[output_text_1,output_text_2,output_text_3],
64
- title="Medical Model Interface",
65
- allow_flagging='never').launch()
 
 
 
 
 
 
34
  print("Unknown stage parameters")
35
  raise gr.Error('Provide appropriate parameters and try again')
36
 
 
 
37
 
38
  # Create text input components with labels
39
  input_text = gr.Textbox(lines=7, label="Sample keywords", placeholder="Enter sample keywords here")
 
49
 
50
  stage = gr.Dropdown(choices=stage_choices, label="Stage")
51
 
52
+ # Create output containers
53
  output_text_1 = gr.Textbox(lines=6, label="Variant 1", show_copy_button=True)
54
  output_text_2 = gr.Textbox(lines=6, label="Variant 2", show_copy_button=True)
55
  output_text_3 = gr.Textbox(lines=6, label="Variant 3", show_copy_button=True)
56
 
57
+ title_html = """
58
+ <div style="display: flex; align-items: center; width=100%; background-color:#FFC90E; overflow:auto;">
59
+ <img src='https://i.ibb.co/gPFskvg/LOGO-1.png' style='height: 90px; width:90px; margin-left: 20px;'>
60
+ <span style="margin-left: 20px;font-size:30px">
61
+ <span>Patient Assessment Documentation &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
62
+ </span>
63
+ </div>
64
+
65
+ """
66
+
67
 
68
  # Create a Gradio interface
69
+ interface=gr.Interface(fn=process_text,
70
  inputs=[input_text, stage, medical_history],
71
  outputs=[output_text_1,output_text_2,output_text_3],
72
+ title=title_html,
73
+ theme=gr.themes.Default(),
74
+ allow_flagging='never')
75
+
76
+ interface.launch()
77
+
78
+