Spaces:
Runtime error
Runtime error
ashishraics
commited on
Commit
•
3a5030d
1
Parent(s):
9954d48
error fix
Browse files- .gitmodules +3 -0
- app.py +1 -1
- requirements.txt +1 -2
.gitmodules
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[submodule "pke"]
|
2 |
+
path = pke
|
3 |
+
url = https://github.com/boudinfl/pke.git
|
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import logging
|
2 |
import os
|
3 |
-
|
4 |
import gradio as gr
|
5 |
import streamlit as st
|
6 |
import onnxruntime as ort
|
@@ -19,6 +18,7 @@ from PIL import Image
|
|
19 |
import multiprocessing
|
20 |
total_threads=multiprocessing.cpu_count()
|
21 |
|
|
|
22 |
|
23 |
st.set_page_config( # Alternate names: setup_page, page, layout
|
24 |
layout="wide", # Can be "centered" or "wide". In the future also "dashboard", etc.
|
|
|
1 |
import logging
|
2 |
import os
|
|
|
3 |
import gradio as gr
|
4 |
import streamlit as st
|
5 |
import onnxruntime as ort
|
|
|
18 |
import multiprocessing
|
19 |
total_threads=multiprocessing.cpu_count()
|
20 |
|
21 |
+
subprocess.run(['pip3', 'install','git+https://github.com/boudinfl/pke.git'])
|
22 |
|
23 |
st.set_page_config( # Alternate names: setup_page, page, layout
|
24 |
layout="wide", # Can be "centered" or "wide". In the future also "dashboard", etc.
|
requirements.txt
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
streamlit~=1.9.0
|
2 |
-
onnxruntime~=1.11.1
|
3 |
Pillow~=9.1.0
|
4 |
-
git+https://github.com/boudinfl/pke.git
|
5 |
nltk~=3.7
|
6 |
regex~=2022.4.24
|
7 |
flashtext~=2.7
|
|
|
1 |
streamlit~=1.9.0
|
|
|
2 |
Pillow~=9.1.0
|
3 |
+
# git+https://github.com/boudinfl/pke.git -> install using subprocess
|
4 |
nltk~=3.7
|
5 |
regex~=2022.4.24
|
6 |
flashtext~=2.7
|