textToSQL commited on
Commit
e24d441
·
1 Parent(s): 9cd7ee3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -72,10 +72,27 @@ def get_completion(prompt, model='gpt-3.5-turbo'):
72
  return response.choices[0].message['content']
73
 
74
  with gr.Blocks() as demo:
 
75
  gr.Markdown("""
76
  # Chat with NP
77
- ## This is to make life of NPs easier. Record post visit summary in natural language, press "transcribe audio", and then "prepare a report".
 
78
  """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  title = "Chat with NP"
80
  audio = gr.Audio(source="microphone", type="filepath")
81
 
 
72
  return response.choices[0].message['content']
73
 
74
  with gr.Blocks() as demo:
75
+
76
  gr.Markdown("""
77
  # Chat with NP
78
+ #### This is to make life of NPs easier.
79
+ #### Record post visit summary in natural language, press "transcribe audio", and then "prepare a report".
80
  """)
81
+ centered_demo_text = gr.Interface(
82
+ fn=lambda: demo_text,
83
+ inputs=None,
84
+ outputs="html",
85
+ layout="vertical",
86
+ title="My Title",
87
+ theme="compact",
88
+ allow_flagging=False,
89
+ analytics_enabled=False
90
+ )
91
+
92
+ centered_demo_text.layout.type = "full-page"
93
+ centered_demo_text.layout.justify_content = "center"
94
+ centered_demo_text.launch()
95
+
96
  title = "Chat with NP"
97
  audio = gr.Audio(source="microphone", type="filepath")
98