Spaces:
Runtime error
Runtime error
Commit ·
0d7e2a6
1
Parent(s): bd4c55a
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# coding: utf-8
|
| 3 |
-
|
|
|
|
| 4 |
# ## Import Libs
|
| 5 |
|
| 6 |
# In[54]:
|
|
@@ -26,7 +27,7 @@ print('Token example:',word_tokenize(title[rand:rand+1].values[0],engine='longes
|
|
| 26 |
|
| 27 |
# In[234]:
|
| 28 |
import pygsheets
|
| 29 |
-
gc = pygsheets.authorize()
|
| 30 |
|
| 31 |
def pygsheets_df(df,tab_name='huggingface-test',sheet_name = 'Subcategory Prediction'):
|
| 32 |
try:
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# coding: utf-8
|
| 3 |
+
import os
|
| 4 |
+
os.environ["pyg_secret"]
|
| 5 |
# ## Import Libs
|
| 6 |
|
| 7 |
# In[54]:
|
|
|
|
| 27 |
|
| 28 |
# In[234]:
|
| 29 |
import pygsheets
|
| 30 |
+
gc = pygsheets.authorize(os.environ["pyg_secret"])
|
| 31 |
|
| 32 |
def pygsheets_df(df,tab_name='huggingface-test',sheet_name = 'Subcategory Prediction'):
|
| 33 |
try:
|