Spaces:
Sleeping
Sleeping
Commit
·
aec21f8
1
Parent(s):
1e9f8be
Changes to be committed:
Browse filesmodified: app.ipynb
modified: app.py
app.ipynb
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
},
|
13 |
{
|
14 |
"cell_type": "code",
|
15 |
-
"execution_count":
|
16 |
"id": "667802a7-0f36-4136-a381-e66210b20462",
|
17 |
"metadata": {},
|
18 |
"outputs": [
|
@@ -54,7 +54,7 @@
|
|
54 |
},
|
55 |
{
|
56 |
"cell_type": "code",
|
57 |
-
"execution_count":
|
58 |
"id": "4d9863fc-969e-409b-8e20-b9c3cd2cc3e7",
|
59 |
"metadata": {},
|
60 |
"outputs": [],
|
@@ -68,7 +68,7 @@
|
|
68 |
},
|
69 |
{
|
70 |
"cell_type": "code",
|
71 |
-
"execution_count":
|
72 |
"id": "4f486d3a",
|
73 |
"metadata": {},
|
74 |
"outputs": [],
|
@@ -91,7 +91,7 @@
|
|
91 |
},
|
92 |
{
|
93 |
"cell_type": "code",
|
94 |
-
"execution_count":
|
95 |
"id": "0ffd33b4-cb9b-4c01-bff6-4c3102854ab6",
|
96 |
"metadata": {},
|
97 |
"outputs": [
|
@@ -114,7 +114,7 @@
|
|
114 |
},
|
115 |
{
|
116 |
"cell_type": "code",
|
117 |
-
"execution_count":
|
118 |
"id": "2ddbca5d-4b04-43ab-afaf-430802980e78",
|
119 |
"metadata": {},
|
120 |
"outputs": [],
|
@@ -125,7 +125,7 @@
|
|
125 |
},
|
126 |
{
|
127 |
"cell_type": "code",
|
128 |
-
"execution_count":
|
129 |
"id": "8eb7e7d5-7121-4762-b8d1-e5a9539e2b36",
|
130 |
"metadata": {},
|
131 |
"outputs": [],
|
@@ -136,7 +136,7 @@
|
|
136 |
},
|
137 |
{
|
138 |
"cell_type": "code",
|
139 |
-
"execution_count":
|
140 |
"id": "52d373be-3a79-412e-8ca2-92bb443fa52d",
|
141 |
"metadata": {},
|
142 |
"outputs": [],
|
@@ -148,7 +148,7 @@
|
|
148 |
},
|
149 |
{
|
150 |
"cell_type": "code",
|
151 |
-
"execution_count":
|
152 |
"id": "24674094-4d47-4e48-b591-55faabcff8df",
|
153 |
"metadata": {},
|
154 |
"outputs": [],
|
@@ -189,7 +189,7 @@
|
|
189 |
},
|
190 |
{
|
191 |
"cell_type": "code",
|
192 |
-
"execution_count":
|
193 |
"id": "e6224ae5-3792-42b2-8392-3abd42998a50",
|
194 |
"metadata": {},
|
195 |
"outputs": [],
|
@@ -247,7 +247,7 @@
|
|
247 |
},
|
248 |
{
|
249 |
"cell_type": "code",
|
250 |
-
"execution_count":
|
251 |
"id": "e34bb4aa-698c-4452-8cda-bd02b38f7122",
|
252 |
"metadata": {},
|
253 |
"outputs": [],
|
@@ -376,6 +376,7 @@
|
|
376 |
"source": [
|
377 |
"#| export\n",
|
378 |
"def authorized(profile: gr.OAuthProfile) -> str:\n",
|
|
|
379 |
" if profile in [\"matdmiller\"]:\n",
|
380 |
" return f\"{profile.username}\"\n",
|
381 |
" return None"
|
|
|
12 |
},
|
13 |
{
|
14 |
"cell_type": "code",
|
15 |
+
"execution_count": 1,
|
16 |
"id": "667802a7-0f36-4136-a381-e66210b20462",
|
17 |
"metadata": {},
|
18 |
"outputs": [
|
|
|
54 |
},
|
55 |
{
|
56 |
"cell_type": "code",
|
57 |
+
"execution_count": 2,
|
58 |
"id": "4d9863fc-969e-409b-8e20-b9c3cd2cc3e7",
|
59 |
"metadata": {},
|
60 |
"outputs": [],
|
|
|
68 |
},
|
69 |
{
|
70 |
"cell_type": "code",
|
71 |
+
"execution_count": 3,
|
72 |
"id": "4f486d3a",
|
73 |
"metadata": {},
|
74 |
"outputs": [],
|
|
|
91 |
},
|
92 |
{
|
93 |
"cell_type": "code",
|
94 |
+
"execution_count": 4,
|
95 |
"id": "0ffd33b4-cb9b-4c01-bff6-4c3102854ab6",
|
96 |
"metadata": {},
|
97 |
"outputs": [
|
|
|
114 |
},
|
115 |
{
|
116 |
"cell_type": "code",
|
117 |
+
"execution_count": 5,
|
118 |
"id": "2ddbca5d-4b04-43ab-afaf-430802980e78",
|
119 |
"metadata": {},
|
120 |
"outputs": [],
|
|
|
125 |
},
|
126 |
{
|
127 |
"cell_type": "code",
|
128 |
+
"execution_count": 6,
|
129 |
"id": "8eb7e7d5-7121-4762-b8d1-e5a9539e2b36",
|
130 |
"metadata": {},
|
131 |
"outputs": [],
|
|
|
136 |
},
|
137 |
{
|
138 |
"cell_type": "code",
|
139 |
+
"execution_count": 7,
|
140 |
"id": "52d373be-3a79-412e-8ca2-92bb443fa52d",
|
141 |
"metadata": {},
|
142 |
"outputs": [],
|
|
|
148 |
},
|
149 |
{
|
150 |
"cell_type": "code",
|
151 |
+
"execution_count": 8,
|
152 |
"id": "24674094-4d47-4e48-b591-55faabcff8df",
|
153 |
"metadata": {},
|
154 |
"outputs": [],
|
|
|
189 |
},
|
190 |
{
|
191 |
"cell_type": "code",
|
192 |
+
"execution_count": 9,
|
193 |
"id": "e6224ae5-3792-42b2-8392-3abd42998a50",
|
194 |
"metadata": {},
|
195 |
"outputs": [],
|
|
|
247 |
},
|
248 |
{
|
249 |
"cell_type": "code",
|
250 |
+
"execution_count": 10,
|
251 |
"id": "e34bb4aa-698c-4452-8cda-bd02b38f7122",
|
252 |
"metadata": {},
|
253 |
"outputs": [],
|
|
|
376 |
"source": [
|
377 |
"#| export\n",
|
378 |
"def authorized(profile: gr.OAuthProfile) -> str:\n",
|
379 |
+
" print(profile)\n",
|
380 |
" if profile in [\"matdmiller\"]:\n",
|
381 |
" return f\"{profile.username}\"\n",
|
382 |
" return None"
|
app.py
CHANGED
@@ -231,6 +231,7 @@ def get_generation_cost(input_text, tts_model_dropdown):
|
|
231 |
|
232 |
# %% app.ipynb 15
|
233 |
def authorized(profile: gr.OAuthProfile) -> str:
|
|
|
234 |
if profile in ["matdmiller"]:
|
235 |
return f"{profile.username}"
|
236 |
return None
|
|
|
231 |
|
232 |
# %% app.ipynb 15
|
233 |
def authorized(profile: gr.OAuthProfile) -> str:
|
234 |
+
print(profile)
|
235 |
if profile in ["matdmiller"]:
|
236 |
return f"{profile.username}"
|
237 |
return None
|