Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -286,30 +286,14 @@ def demo():
|
|
286 |
|
287 |
gr.Markdown(
|
288 |
"""<center>
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
<div style="display: flex; justify-content: center; align-items: center; margin-top: 2rem; gap: 1rem;">
|
298 |
-
<a href="https://huggingface.co/nirajandhakal" target="_blank" rel="noreferrer">
|
299 |
-
<img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-%23FF0000.svg?style=for-the-badge&logo=huggingface&logoColor=white" alt="Hugging Face">
|
300 |
-
</a>
|
301 |
-
<a href="https://twitter.com/nirajandhakal_7" target="_blank" rel="noreferrer">
|
302 |
-
<img src="https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=for-the-badge&logo=Twitter&logoColor=white" alt="Twitter">
|
303 |
-
</a>
|
304 |
-
<a href="https://www.linkedin.com/in/nirajandhakal07" target="_blank" rel="noreferrer">
|
305 |
-
<img src="https://img.shields.io/badge/LinkedIn-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">
|
306 |
-
</a>
|
307 |
-
<a href="https://github.com/dhakalnirajan" target="_blank" rel="noreferrer">
|
308 |
-
<img src="https://img.shields.io/badge/Github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white" alt="GitHub">
|
309 |
-
</a>
|
310 |
-
</div>
|
311 |
-
</center>
|
312 |
-
"""
|
313 |
)
|
314 |
with gr.Tab("Step 1 - Document pre-processing"):
|
315 |
with gr.Row():
|
|
|
286 |
|
287 |
gr.Markdown(
|
288 |
"""<center>
|
289 |
+
<h2>PDF-based Chatbot (powered by LangChain and open-source Large Language Models)</h2>
|
290 |
+
<h3>Ask any questions about your PDF documents, along with follow-ups.</h3>
|
291 |
+
<b>Note:</b> This AI assistant performs retrieval-augmented generation from your PDF documents.
|
292 |
+
When generating answers, it takes past questions into account (via conversational memory), and includes document references for clarity purposes.</i>
|
293 |
+
|
294 |
+
<b>Warning:</b> This space uses the free CPU Basic hardware from Hugging Face. Some steps and LLM models used below (free inference endpoints) can take some time to generate an output.
|
295 |
+
</center>
|
296 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
)
|
298 |
with gr.Tab("Step 1 - Document pre-processing"):
|
299 |
with gr.Row():
|