schuler commited on
Commit
4492796
·
verified ·
1 Parent(s): 23b0879

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -8,6 +8,11 @@ import streamlit as st
8
  # Define the model repository
9
  REPO_NAME = 'schuler/experimental-JP47D20'
10
 
 
 
 
 
 
11
  # Load tokenizer and model
12
  @st.cache_resource(show_spinner="Loading model...")
13
  def load_model(repo_name):
@@ -23,11 +28,6 @@ try:
23
  except Exception as e:
24
  st.error(f"Failed to load model: {str(e)}")
25
 
26
- # Configure the Streamlit app
27
- st.set_page_config(page_title="Experimental KPhi3 Model - Currently in Training", page_icon="🤗")
28
- st.title("Experimental KPhi3 Model - Currently in Training")
29
- st.markdown(f"*This chat uses the {REPO_NAME} model. Feel free to ask questions such as 'What is biology?' or 'What is the human body?'*")
30
-
31
  # Initialize session state for avatars
32
  if "avatars" not in st.session_state:
33
  st.session_state.avatars = {'user': None, 'assistant': None}
 
8
  # Define the model repository
9
  REPO_NAME = 'schuler/experimental-JP47D20'
10
 
11
+ # Configure the Streamlit app
12
+ st.set_page_config(page_title="Experimental KPhi3 Model - Currently in Training", page_icon="🤗")
13
+ st.title("Experimental KPhi3 Model - Currently in Training")
14
+ st.markdown(f"*This chat uses the {REPO_NAME} model. Feel free to ask questions such as 'What is biology?' or 'What is the human body?'*")
15
+
16
  # Load tokenizer and model
17
  @st.cache_resource(show_spinner="Loading model...")
18
  def load_model(repo_name):
 
28
  except Exception as e:
29
  st.error(f"Failed to load model: {str(e)}")
30
 
 
 
 
 
 
31
  # Initialize session state for avatars
32
  if "avatars" not in st.session_state:
33
  st.session_state.avatars = {'user': None, 'assistant': None}