NCTCMumbai
commited on
Commit
•
1255916
1
Parent(s):
a9ee3e9
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
122 |
# Beautiful heading with logo
|
123 |
gr.HTML(value="""
|
124 |
<div style="display: flex; align-items: center; justify-content: space-between;">
|
125 |
-
<h1 style="color: #008000">ADWITIYA - <span style="color: #008000">Customs Manual Chatbot
|
126 |
<img src='logo.png' alt="Chatbot" width="50" height="50" />
|
127 |
</div>
|
128 |
""", elem_id="heading")
|
@@ -152,7 +152,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
152 |
api_kind = gr.Radio(choices=["HuggingFace","Gemini"], value="HuggingFace")
|
153 |
|
154 |
#prompt_html = gr.HTML()
|
155 |
-
prompt_html = gr.Textbox()
|
156 |
try:
|
157 |
# Turn off interactivity while generating if you click
|
158 |
txt_msg = txt_btn.click(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|
|
|
122 |
# Beautiful heading with logo
|
123 |
gr.HTML(value="""
|
124 |
<div style="display: flex; align-items: center; justify-content: space-between;">
|
125 |
+
<h1 style="color: #008000">ADWITIYA - <span style="color: #008000">Customs Manual Chatbot</span></h1>
|
126 |
<img src='logo.png' alt="Chatbot" width="50" height="50" />
|
127 |
</div>
|
128 |
""", elem_id="heading")
|
|
|
152 |
api_kind = gr.Radio(choices=["HuggingFace","Gemini"], value="HuggingFace")
|
153 |
|
154 |
#prompt_html = gr.HTML()
|
155 |
+
prompt_html = gr.Textbox(label='Retrieved Documents')
|
156 |
try:
|
157 |
# Turn off interactivity while generating if you click
|
158 |
txt_msg = txt_btn.click(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|