Asaad Almutareb commited on
Commit
2315c49
Β·
1 Parent(s): ffcbf6b

more changes to the gradio

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -49,7 +49,7 @@ def create_gradio_interface(qa:RetrievalQAWithSourcesChain):
49
  title = """
50
  <div style="text-align: center;max-width: 1920px;">
51
  <h1>Chat with your Documentation</h1>
52
- <p style="text-align: center;">This is a privately hosten Docs AI Buddy ;)</p>
53
  </div>
54
  """
55
 
@@ -67,13 +67,13 @@ def create_gradio_interface(qa:RetrievalQAWithSourcesChain):
67
  with gr.Blocks(title="DocsBuddy AI πŸ€΅πŸ»β€β™‚οΈ", head=head_style) as demo:
68
  with gr.Column(min_width=900, elem_id="col-container"):
69
  gr.HTML(title)
70
- chatbot = gr.Chatbot([], elem_id="chatbot", label="DocuBuddy πŸ€΅πŸ»β€β™‚οΈ")
 
 
71
  #with gr.Row():
72
  # clear = gr.Button("Clear")
73
  chatbot.like(vote, None, None)
74
 
75
- with gr.Row():
76
- question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
77
  with gr.Row():
78
  clear = gr.ClearButton([chatbot, question])
79
 
 
49
  title = """
50
  <div style="text-align: center;max-width: 1920px;">
51
  <h1>Chat with your Documentation</h1>
52
+ <p style="text-align: center;">This is a privately hosted Docs AI Buddy ;)</p>
53
  </div>
54
  """
55
 
 
67
  with gr.Blocks(title="DocsBuddy AI πŸ€΅πŸ»β€β™‚οΈ", head=head_style) as demo:
68
  with gr.Column(min_width=900, elem_id="col-container"):
69
  gr.HTML(title)
70
+ with gr.Row():
71
+ question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
72
+ chatbot = gr.Chatbot([], elem_id="chatbot", label="DocuBuddy πŸ€΅πŸ»β€β™‚οΈ", height=660)
73
  #with gr.Row():
74
  # clear = gr.Button("Clear")
75
  chatbot.like(vote, None, None)
76
 
 
 
77
  with gr.Row():
78
  clear = gr.ClearButton([chatbot, question])
79