Spaces:
Runtime error
Runtime error
fix to run on hf
Browse files- README.md +13 -52
- requirements.txt +3 -0
README.md
CHANGED
@@ -1,52 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
## How to use
|
16 |
-
|
17 |
-
Fill me in please! Don’t forget code examples:
|
18 |
-
|
19 |
-
``` python
|
20 |
-
pr = Project('key.json')
|
21 |
-
pr
|
22 |
-
```
|
23 |
-
|
24 |
-
1DNoNf4glcuMxKoVzHVrFo-MktmsVji1wf4IHeraWH84
|
25 |
-
|
26 |
-
``` python
|
27 |
-
pr.get()
|
28 |
-
```
|
29 |
-
|
30 |
-
[['name', 'backlog item #', 'hours spent', 'date'],
|
31 |
-
['Hiroshi Doyu', '25', '1', '2022/1/16'],
|
32 |
-
['Michihito Mizutani', '28', '1', '2022/1/16']]
|
33 |
-
|
34 |
-
``` python
|
35 |
-
import pandas as pd
|
36 |
-
```
|
37 |
-
|
38 |
-
``` python
|
39 |
-
df = pd.DataFrame(pr.get())
|
40 |
-
df.columns = df.iloc[0]
|
41 |
-
df = df[1:]
|
42 |
-
df['backlog item #'] = df['backlog item #'].astype(int)
|
43 |
-
df['hours spent'] = df['hours spent'].astype(int)
|
44 |
-
df.date = pd.to_datetime(df.date)
|
45 |
-
df.date = df.date.dt.strftime("%Y-%m-%d")
|
46 |
-
pr.put([df.columns.tolist()] + df.values.tolist())
|
47 |
-
pr.get()
|
48 |
-
```
|
49 |
-
|
50 |
-
[['name', 'backlog item #', 'hours spent', 'date'],
|
51 |
-
['Hiroshi Doyu', '25', '1', '2022/1/16'],
|
52 |
-
['Michihito Mizutani', '28', '1', '2022/1/16']]
|
|
|
1 |
+
---
|
2 |
+
title: TinyMLaaS devel
|
3 |
+
emoji: 🌍
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: blue
|
6 |
+
sdk: streamlit
|
7 |
+
sdk_version: 1.17.0
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
license: apache-2.0
|
11 |
+
---
|
12 |
+
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
fastcore
|
2 |
+
pandas
|
3 |
+
google-api-python-client
|