Spaces:
Build error
Build error
Commit
·
8295f3b
1
Parent(s):
a2945b0
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,14 @@ import gradio as gr
|
|
2 |
import numpy as np
|
3 |
import os
|
4 |
from huggingface_hub import hf_hub_download
|
|
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
def predict_label(text):
|
7 |
|
8 |
ip = text.split()
|
|
|
2 |
import numpy as np
|
3 |
import os
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
+
from camel_tools.data import CATALOGUE
|
6 |
|
7 |
+
|
8 |
+
|
9 |
+
CATALOGUE.download_package("light",
|
10 |
+
recursive=True,
|
11 |
+
force=True,
|
12 |
+
print_status=True)
|
13 |
def predict_label(text):
|
14 |
|
15 |
ip = text.split()
|