Mr-Geo commited on
Commit
7946efa
Β·
verified Β·
1 Parent(s): e6f62c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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) API for rapid 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,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=550)
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",