Spaces:
Running
Running
change button names
Browse files
app.py
CHANGED
|
@@ -22,13 +22,13 @@ def openai_pressed():
|
|
| 22 |
|
| 23 |
st.write("# Get the summaries of latest top Hacker News posts 🧡")
|
| 24 |
if st.session_state.get("model") == None:
|
| 25 |
-
mistral, openai
|
| 26 |
|
| 27 |
with mistral:
|
| 28 |
-
st.button("
|
| 29 |
|
| 30 |
with openai:
|
| 31 |
-
st.button("
|
| 32 |
|
| 33 |
if st.session_state.get("model") and (st.session_state.get("HF_TGI_TOKEN") or st.session_state.get("OPENAI_API_KEY")):
|
| 34 |
|
|
|
|
| 22 |
|
| 23 |
st.write("# Get the summaries of latest top Hacker News posts 🧡")
|
| 24 |
if st.session_state.get("model") == None:
|
| 25 |
+
mistral, openai = st.columns([2,1], gap="small")
|
| 26 |
|
| 27 |
with mistral:
|
| 28 |
+
st.button("Mixtral-8x7B-Instruct", on_click=mistral_pressed, type="primary")
|
| 29 |
|
| 30 |
with openai:
|
| 31 |
+
st.button("GPT-4", on_click=openai_pressed, type="primary")
|
| 32 |
|
| 33 |
if st.session_state.get("model") and (st.session_state.get("HF_TGI_TOKEN") or st.session_state.get("OPENAI_API_KEY")):
|
| 34 |
|