YchKhan commited on
Commit
a31260c
1 Parent(s): 176276e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -240,7 +240,7 @@ def display_docs_modal(docs):
240
 
241
 
242
  def hide_source():
243
- return gr.Markdown(value=documents.split(label='Source', visible=False))
244
 
245
 
246
  def ask_llm(system, user_input):
@@ -373,11 +373,10 @@ with gr.Blocks() as demo:
373
  with gr.Column():
374
  answer_output = gr.Markdown(label='AI Answer', visible=False)
375
  md_ref = gr.Markdown(label='Source', visible=False)
376
-
377
  with gr.Row():
378
  query_input = gr.Textbox(placeholder="Type your question", label="Question ❔", scale=9, visible=False)
379
  btn_askGPT = gr.Button("▶", scale=1, visible=False)
380
- btn_hide_source = gr.Button('Hide', visible=False)
381
  with gr.Row():
382
  btn1 = gr.Button("Ref 1")
383
  btn2 = gr.Button("Ref 2")
 
240
 
241
 
242
  def hide_source():
243
+ return gr.Markdown(label='Source', visible=False)
244
 
245
 
246
  def ask_llm(system, user_input):
 
373
  with gr.Column():
374
  answer_output = gr.Markdown(label='AI Answer', visible=False)
375
  md_ref = gr.Markdown(label='Source', visible=False)
376
+ btn_hide_source = gr.Button('Hide', visible=False)
377
  with gr.Row():
378
  query_input = gr.Textbox(placeholder="Type your question", label="Question ❔", scale=9, visible=False)
379
  btn_askGPT = gr.Button("▶", scale=1, visible=False)
 
380
  with gr.Row():
381
  btn1 = gr.Button("Ref 1")
382
  btn2 = gr.Button("Ref 2")