jingwora commited on
Commit
ee76192
·
1 Parent(s): fd5f243

Add application file

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -129,6 +129,13 @@ title = """
129
  </p>
130
  </div>
131
  """
 
 
 
 
 
 
 
132
 
133
  with gr.Blocks(css=css) as demo:
134
  with gr.Column(elem_id="col-container"):
@@ -147,6 +154,7 @@ with gr.Blocks(css=css) as demo:
147
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
148
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
149
  submit_btn = gr.Button("Send Message")
 
150
 
151
  load_pdf.click(loading_pdf, None, status, queue=False)
152
  load_pdf.click(pdf_changes, inputs=[pdf_doc, openai_key], outputs=[status], queue=False)
@@ -163,10 +171,5 @@ with gr.Blocks(css=css) as demo:
163
  )
164
  submit_btn.click(add_text, [chatbot, question], [chatbot, question]).then(
165
  bot, chatbot, chatbot)
166
- gr.Markdown("""
167
- version: 0.10
168
- """
169
- )
170
-
171
 
172
  demo.queue(concurrency_count=5, max_size=20).launch(debug=True)
 
129
  </p>
130
  </div>
131
  """
132
+ version = """
133
+ <div style="text-align: center;max-width: 700px;">
134
+ <p style="text-align: left;">Instruction: <br />
135
+ version: 0.10
136
+ </p>
137
+ </div>
138
+ """
139
 
140
  with gr.Blocks(css=css) as demo:
141
  with gr.Column(elem_id="col-container"):
 
154
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
155
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
156
  submit_btn = gr.Button("Send Message")
157
+ gr.HTML(version)
158
 
159
  load_pdf.click(loading_pdf, None, status, queue=False)
160
  load_pdf.click(pdf_changes, inputs=[pdf_doc, openai_key], outputs=[status], queue=False)
 
171
  )
172
  submit_btn.click(add_text, [chatbot, question], [chatbot, question]).then(
173
  bot, chatbot, chatbot)
 
 
 
 
 
174
 
175
  demo.queue(concurrency_count=5, max_size=20).launch(debug=True)