Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,34 +7,7 @@ from dotenv import load_dotenv
|
|
| 7 |
from openai import OpenAI
|
| 8 |
import assemblyai as aai
|
| 9 |
from moviepy.editor import *
|
| 10 |
-
from dependencies import sign_up, fetch_users
|
| 11 |
|
| 12 |
-
try:
|
| 13 |
-
users = fetch_users()
|
| 14 |
-
emails = []
|
| 15 |
-
usernames = []
|
| 16 |
-
passwords = []
|
| 17 |
-
|
| 18 |
-
for user in users:
|
| 19 |
-
emails.append(user['key'])
|
| 20 |
-
usernames.append(user['username'])
|
| 21 |
-
passwords.append(user['password'])
|
| 22 |
-
|
| 23 |
-
credentials = {'usernames': {}}
|
| 24 |
-
for index in range(len(emails)):
|
| 25 |
-
credentials['usernames'][usernames[index]] = {'name': emails[index], 'password': passwords[index]}
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
info, info1 = st.columns(2)
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
except:
|
| 37 |
-
st.success('Refresh Page')
|
| 38 |
|
| 39 |
|
| 40 |
# Load environment variables
|
|
|
|
| 7 |
from openai import OpenAI
|
| 8 |
import assemblyai as aai
|
| 9 |
from moviepy.editor import *
|
|
|
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
# Load environment variables
|