salomonsky commited on
Commit
8e46299
verified
1 Parent(s): a6d77f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,6 +8,8 @@ import streamlit as st
8
  from huggingface_hub import AsyncInferenceClient
9
  import streamlit_authenticator as stauth
10
 
 
 
11
  MAX_SEED = np.iinfo(np.int32).max
12
  client = AsyncInferenceClient()
13
  DATA_PATH = Path("./data")
@@ -15,7 +17,6 @@ DATA_PATH.mkdir(exist_ok=True)
15
 
16
  PREDEFINED_SEED = random.randint(0, MAX_SEED)
17
 
18
- # Configuraci贸n de autenticaci贸n
19
  credentials = {
20
  "usernames": {
21
  "admin": {
@@ -90,7 +91,6 @@ def get_prompts():
90
  return {file.stem.replace("prompt_", ""): file for file in prompt_files}
91
 
92
  def main():
93
- st.set_page_config(layout="wide")
94
  name, authentication_status, username = authenticator.login("Login", "main")
95
 
96
  if authentication_status:
 
8
  from huggingface_hub import AsyncInferenceClient
9
  import streamlit_authenticator as stauth
10
 
11
+ st.set_page_config(layout="wide")
12
+
13
  MAX_SEED = np.iinfo(np.int32).max
14
  client = AsyncInferenceClient()
15
  DATA_PATH = Path("./data")
 
17
 
18
  PREDEFINED_SEED = random.randint(0, MAX_SEED)
19
 
 
20
  credentials = {
21
  "usernames": {
22
  "admin": {
 
91
  return {file.stem.replace("prompt_", ""): file for file in prompt_files}
92
 
93
  def main():
 
94
  name, authentication_status, username = authenticator.login("Login", "main")
95
 
96
  if authentication_status: