Spaces:
Sleeping
Sleeping
salomonsky
commited on
Update app.py
Browse files
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:
|