Spaces:
Sleeping
Sleeping
Andrew Green
commited on
Commit
·
a34dac3
1
Parent(s):
5d55167
tidy up imports
Browse files
app.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import spaces
|
| 3 |
-
import torch
|
| 4 |
import polars as pl
|
| 5 |
from datetime import datetime
|
| 6 |
from functools import lru_cache
|
| 7 |
from transformers import pipeline
|
| 8 |
from typing import Dict
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
label_lookup = {
|
| 11 |
"LABEL_0": "NOT_CURATEABLE",
|
|
@@ -39,11 +42,7 @@ def classify_abstracts(abstracts:Dict[str, str]) -> None:
|
|
| 39 |
|
| 40 |
return classification
|
| 41 |
|
| 42 |
-
|
| 43 |
-
import requests
|
| 44 |
-
import xml.etree.ElementTree as ET
|
| 45 |
-
import time
|
| 46 |
-
from typing import List, Tuple, Dict
|
| 47 |
|
| 48 |
@lru_cache
|
| 49 |
def fetch_latest_canto_dump() -> pl.DataFrame:
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import spaces
|
|
|
|
| 3 |
import polars as pl
|
| 4 |
from datetime import datetime
|
| 5 |
from functools import lru_cache
|
| 6 |
from transformers import pipeline
|
| 7 |
from typing import Dict
|
| 8 |
+
import requests
|
| 9 |
+
import xml.etree.ElementTree as ET
|
| 10 |
+
import time
|
| 11 |
+
from typing import List, Tuple, Dict
|
| 12 |
|
| 13 |
label_lookup = {
|
| 14 |
"LABEL_0": "NOT_CURATEABLE",
|
|
|
|
| 42 |
|
| 43 |
return classification
|
| 44 |
|
| 45 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
@lru_cache
|
| 48 |
def fetch_latest_canto_dump() -> pl.DataFrame:
|