Illia56 commited on
Commit
9cdcdcf
·
1 Parent(s): 56a9921

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import json
3
  import os
4
  import requests
5
- from bardapi import AsyncBard
6
 
7
  # Load the GOOGLE_LANGUAGES_TO_CODES dictionary from lang.json
8
  with open("lang.json", "r") as file:
@@ -21,7 +21,7 @@ with st.sidebar:
21
  selected_language_code = GOOGLE_LANGUAGES_TO_CODES[selected_language_name]
22
 
23
  # Initialize Bard with the selected language code
24
- bard = AsyncBard(token=os.getenv("_BARD_API_KEY"), language=selected_language_code)
25
 
26
  TITLE = "Palm 2🌴 Chatbot"
27
  DESCRIPTION = """
 
2
  import json
3
  import os
4
  import requests
5
+ from bardapi import BardAsync
6
 
7
  # Load the GOOGLE_LANGUAGES_TO_CODES dictionary from lang.json
8
  with open("lang.json", "r") as file:
 
21
  selected_language_code = GOOGLE_LANGUAGES_TO_CODES[selected_language_name]
22
 
23
  # Initialize Bard with the selected language code
24
+ bard = BardAsync(token=os.getenv("_BARD_API_KEY"), language=selected_language_code)
25
 
26
  TITLE = "Palm 2🌴 Chatbot"
27
  DESCRIPTION = """