Commit
·
0430ddb
1
Parent(s):
9f0f7fe
Addind Chat functions to QA retrival chain
Browse files
app.py
CHANGED
@@ -127,6 +127,14 @@ with gr.Blocks(css=css) as demo:
|
|
127 |
with gr.Column(elem_id="col-container"):
|
128 |
gr.HTML(title)
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
with gr.Column():
|
131 |
with gr.Row():
|
132 |
LLM_option = gr.Dropdown(['HuggingFace','OpenAI'],label='Large Language Model Selection',info='LLM Service')
|
@@ -146,14 +154,6 @@ with gr.Blocks(css=css) as demo:
|
|
146 |
step = 500,value= 1500
|
147 |
)
|
148 |
|
149 |
-
with gr.Group():
|
150 |
-
chatbot = gr.Chatbot(height=300)
|
151 |
-
|
152 |
-
with gr.Row():
|
153 |
-
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
154 |
-
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
155 |
-
clean_chat_btn = gr.Button("Delete Chat")
|
156 |
-
|
157 |
with gr.Column():
|
158 |
youtube_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
|
159 |
with gr.Box():
|
|
|
127 |
with gr.Column(elem_id="col-container"):
|
128 |
gr.HTML(title)
|
129 |
|
130 |
+
with gr.Group():
|
131 |
+
chatbot = gr.Chatbot(height=300)
|
132 |
+
|
133 |
+
with gr.Row():
|
134 |
+
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
135 |
+
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
136 |
+
clean_chat_btn = gr.Button("Delete Chat")
|
137 |
+
|
138 |
with gr.Column():
|
139 |
with gr.Row():
|
140 |
LLM_option = gr.Dropdown(['HuggingFace','OpenAI'],label='Large Language Model Selection',info='LLM Service')
|
|
|
154 |
step = 500,value= 1500
|
155 |
)
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
with gr.Column():
|
158 |
youtube_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
|
159 |
with gr.Box():
|