Spaces:
Runtime error
Runtime error
Shruhrid Banthia
commited on
Commit
•
5671dcd
1
Parent(s):
0d083c9
added requirements and removed some dependencies.
Browse files- app.py +2 -2
- final_maybe.py +1 -1
- requirements.txt +3 -0
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import gradio.inputs
|
3 |
-
import pandas as pd
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
import pickle
|
8 |
from final_maybe import LanguageModel
|
|
|
1 |
import gradio as gr
|
2 |
import gradio.inputs
|
|
|
3 |
|
4 |
+
|
5 |
+
#interacting with input and output directories
|
6 |
|
7 |
import pickle
|
8 |
from final_maybe import LanguageModel
|
final_maybe.py
CHANGED
@@ -54,7 +54,7 @@ def preprocess(sentences, n):
|
|
54 |
tokens = replace_singletons(tokens)
|
55 |
return tokens
|
56 |
|
57 |
-
|
58 |
from itertools import product
|
59 |
import math
|
60 |
from pathlib import Path
|
|
|
54 |
tokens = replace_singletons(tokens)
|
55 |
return tokens
|
56 |
|
57 |
+
|
58 |
from itertools import product
|
59 |
import math
|
60 |
from pathlib import Path
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
pickle
|
2 |
+
nltk
|
3 |
+
math
|