Update app.py
Browse files
app.py
CHANGED
|
@@ -169,11 +169,10 @@ h1 {
|
|
| 169 |
}
|
| 170 |
"""
|
| 171 |
|
| 172 |
-
title=
|
| 173 |
<h1>RAG demo</h1>
|
| 174 |
<p style="text-align: center">Retrieval for web and documents</p>
|
| 175 |
"""
|
| 176 |
-
)
|
| 177 |
|
| 178 |
|
| 179 |
chatbot = gr.Chatbot(placeholder="Please send an URL or document file at first<br>Then ask question and get an answer.", height=800)
|
|
@@ -181,9 +180,9 @@ chatbot = gr.Chatbot(placeholder="Please send an URL or document file at first<b
|
|
| 181 |
with gr.Blocks(theme="soft", css=css, fill_height="true") as demo:
|
| 182 |
gr.ChatInterface(
|
| 183 |
fn = infer,
|
| 184 |
-
title = title,
|
| 185 |
multimodal = True,
|
| 186 |
-
chatbot=chatbot,
|
| 187 |
)
|
| 188 |
|
| 189 |
if __name__ == "__main__":
|
|
|
|
| 169 |
}
|
| 170 |
"""
|
| 171 |
|
| 172 |
+
title="""
|
| 173 |
<h1>RAG demo</h1>
|
| 174 |
<p style="text-align: center">Retrieval for web and documents</p>
|
| 175 |
"""
|
|
|
|
| 176 |
|
| 177 |
|
| 178 |
chatbot = gr.Chatbot(placeholder="Please send an URL or document file at first<br>Then ask question and get an answer.", height=800)
|
|
|
|
| 180 |
with gr.Blocks(theme="soft", css=css, fill_height="true") as demo:
|
| 181 |
gr.ChatInterface(
|
| 182 |
fn = infer,
|
| 183 |
+
title = title,
|
| 184 |
multimodal = True,
|
| 185 |
+
chatbot = chatbot,
|
| 186 |
)
|
| 187 |
|
| 188 |
if __name__ == "__main__":
|