Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import streamlit as st
|
| 3 |
+
import webbrowser
|
| 4 |
+
|
| 5 |
+
def main():
|
| 6 |
+
st.title('Chat LLMs Interfaces !')
|
| 7 |
+
mistral_url = 'https://aipatseer-chatllm.hf.space'
|
| 8 |
+
llama2_url = 'https://huggingface-projects-llama-2-7b-chat.hf.space'
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
if st.button('Open Mistral Chat Interface'):
|
| 12 |
+
webbrowser.open_new_tab(mistral_url)
|
| 13 |
+
elif st.button('Open Llama2 Chat Interface'):
|
| 14 |
+
webbrowser.open_new_tab(llama2_url)
|
| 15 |
+
|