Spaces:
Sleeping
Sleeping
thomasgauthier
commited on
Commit
•
a70e2fc
1
Parent(s):
60333b6
Update main.py
Browse files
main.py
CHANGED
@@ -223,11 +223,6 @@ async def get_oauth_token():
|
|
223 |
)
|
224 |
yield f"data: {json.dumps({ 'url' : auth_url })}\n\n"
|
225 |
|
226 |
-
|
227 |
-
# token = "hf_oauth_eyJhbGciOiJFZERTQSJ9.eyJzY29wZSI6WyJvcGVuaWQiLCJwcm9maWxlIl0sImF1ZCI6Imh0dHBzOi8vaHVnZ2luZ2ZhY2UuY28iLCJvYXV0aEFwcCI6Ijg1MDM0NGU0LTVjMWItNDc0OS04ZTkwLTY3MzcxNGEwZWI0MCIsImlhdCI6MTcwMDc2NTcyMywic3ViIjoiNWVlN2JhNGU0NjRkMDI3MmM4YjI0NTg0IiwiZXhwIjoxNzAwNzY5MzIzLCJpc3MiOiJodHRwczovL2h1Z2dpbmdmYWNlLmNvIn0._47SeAJiUKPgy4iWKF3ukPw-4wkohKKntTsBZtbnOgabXDIaacMM3fuUL37jwu44lKwlJlPBxjl0Asd8cHRVBA"
|
228 |
-
# yield f"data: {json.dumps({'access_token': token, 'username': 'username'})}\n\n"
|
229 |
-
# yield f"data: {json.dumps({'end_stream': True})}\n\n"
|
230 |
-
|
231 |
try:
|
232 |
while True:
|
233 |
message = await queue.get()
|
|
|
223 |
)
|
224 |
yield f"data: {json.dumps({ 'url' : auth_url })}\n\n"
|
225 |
|
|
|
|
|
|
|
|
|
|
|
226 |
try:
|
227 |
while True:
|
228 |
message = await queue.get()
|