Spaces:
Running
Running
Commit
·
b3c3533
1
Parent(s):
2e76bd4
file upload gallery
Browse files
app.py
CHANGED
|
@@ -626,13 +626,6 @@ def show_available_APIs():
|
|
| 626 |
for api_name, status in table.items():
|
| 627 |
st.markdown(f"* {status} {api_name}")
|
| 628 |
|
| 629 |
-
# Define the available versions based on the API keys
|
| 630 |
-
st.session_state['LLM_VERSIONS'] = {
|
| 631 |
-
'OpenAI API': ["GPT 4", "GPT 3.5"],
|
| 632 |
-
'Azure API': ["Azure GPT 4", "Azure GPT 3.5"],
|
| 633 |
-
'Palm API': ["PaLM 2"]
|
| 634 |
-
}
|
| 635 |
-
|
| 636 |
def display_image_gallery():
|
| 637 |
# Initialize the container
|
| 638 |
con_image = st.empty()
|
|
@@ -1747,7 +1740,11 @@ if 'has_key_palm2' not in st.session_state:
|
|
| 1747 |
if 'has_key_azure' not in st.session_state:
|
| 1748 |
st.session_state['has_key_azure'] = False
|
| 1749 |
if 'LLM_VERSIONS' not in st.session_state:
|
| 1750 |
-
st.session_state['LLM_VERSIONS'] =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1751 |
|
| 1752 |
|
| 1753 |
|
|
|
|
| 626 |
for api_name, status in table.items():
|
| 627 |
st.markdown(f"* {status} {api_name}")
|
| 628 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 629 |
def display_image_gallery():
|
| 630 |
# Initialize the container
|
| 631 |
con_image = st.empty()
|
|
|
|
| 1740 |
if 'has_key_azure' not in st.session_state:
|
| 1741 |
st.session_state['has_key_azure'] = False
|
| 1742 |
if 'LLM_VERSIONS' not in st.session_state:
|
| 1743 |
+
st.session_state['LLM_VERSIONS'] = {
|
| 1744 |
+
'OpenAI API': ["GPT 4", "GPT 3.5"],
|
| 1745 |
+
'Azure API': ["Azure GPT 4", "Azure GPT 3.5"],
|
| 1746 |
+
'Palm API': ["PaLM 2"]
|
| 1747 |
+
}
|
| 1748 |
|
| 1749 |
|
| 1750 |
|