Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -325,7 +325,7 @@ if __name__ == "__main__":
|
|
325 |
|
326 |
with demo:
|
327 |
gr.Markdown("# πβοΈBritish Antarctic Survey Website Chat Assistant π§π€")
|
328 |
-
gr.Markdown("Accesses text data from 11,982 unique BAS URLs (6GB [Vector Database](https://huggingface.co/datasets/Mr-Geo/chroma_db/tree/main/) π extracted 02/02/2025) | Created with open source technologies: [Gradio](https://gradio.app) for the interface π¨, [Groq](https://groq.com)
|
329 |
model_selector = gr.Dropdown(
|
330 |
choices=[
|
331 |
"llama-3.1-8b-instant",
|
@@ -339,7 +339,7 @@ if __name__ == "__main__":
|
|
339 |
info="Choose which AI model to use for responses - Select 'deepseek' for the 'thinking' AI search π"
|
340 |
)
|
341 |
|
342 |
-
chatbot = gr.Chatbot(height=
|
343 |
with gr.Row(equal_height=True):
|
344 |
msg = gr.Textbox(
|
345 |
placeholder="What would you like to know? Or choose an example question...β",
|
@@ -378,7 +378,6 @@ if __name__ == "__main__":
|
|
378 |
)
|
379 |
|
380 |
clear.click(lambda: None, None, chatbot, queue=False)
|
381 |
-
|
382 |
gr.Markdown("<footer style='text-align: center; margin-top: 5px;'>π€ AI-generated content; while the Chat Assistant strives for accuracy, errors may occur; please thoroughly check critical information π€<br>β οΈ <strong><u>Disclaimer: This system was not produced by the British Antarctic Survey (BAS) and AI generated output does not reflect the views or opinions of BAS</u></strong> β οΈ <br>(just a bit of fun :D)</footer>")
|
383 |
demo.launch(
|
384 |
server_name="0.0.0.0",
|
|
|
325 |
|
326 |
with demo:
|
327 |
gr.Markdown("# πβοΈBritish Antarctic Survey Website Chat Assistant π§π€")
|
328 |
+
gr.Markdown("Accesses text data from 11,982 unique BAS URLs (6GB [Vector Database](https://huggingface.co/datasets/Mr-Geo/chroma_db/tree/main/) π extracted 02/02/2025) | Created with open source technologies: [Gradio](https://gradio.app) for the interface π¨, [Groq](https://groq.com) for LLM processing β‘, and [Chroma](https://www.trychroma.com/) as the vector database π»π")
|
329 |
model_selector = gr.Dropdown(
|
330 |
choices=[
|
331 |
"llama-3.1-8b-instant",
|
|
|
339 |
info="Choose which AI model to use for responses - Select 'deepseek' for the 'thinking' AI search π"
|
340 |
)
|
341 |
|
342 |
+
chatbot = gr.Chatbot(height=600)
|
343 |
with gr.Row(equal_height=True):
|
344 |
msg = gr.Textbox(
|
345 |
placeholder="What would you like to know? Or choose an example question...β",
|
|
|
378 |
)
|
379 |
|
380 |
clear.click(lambda: None, None, chatbot, queue=False)
|
|
|
381 |
gr.Markdown("<footer style='text-align: center; margin-top: 5px;'>π€ AI-generated content; while the Chat Assistant strives for accuracy, errors may occur; please thoroughly check critical information π€<br>β οΈ <strong><u>Disclaimer: This system was not produced by the British Antarctic Survey (BAS) and AI generated output does not reflect the views or opinions of BAS</u></strong> β οΈ <br>(just a bit of fun :D)</footer>")
|
382 |
demo.launch(
|
383 |
server_name="0.0.0.0",
|