Spaces:
Runtime error
Runtime error
Commit
·
283bb39
1
Parent(s):
39c77f9
Upload app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,7 @@ st.title('StackOverflow Question Demo')
|
|
15 |
|
16 |
library = st.radio('Select a library', ('numpy', 'tensorflow', 'pytorch', 'scipy', 'scikit-learn', 'pandas'))
|
17 |
|
18 |
-
|
19 |
-
question_path = 'numpy.txt'
|
20 |
# loading stackoverflow questions.
|
21 |
# using huggingface load_dataset function.
|
22 |
# not done yet
|
@@ -27,7 +26,7 @@ question_path = 'numpy.txt'
|
|
27 |
|
28 |
dataset = []
|
29 |
#dataset = load_data(question_path)
|
30 |
-
with open(
|
31 |
lines = f.readlines()
|
32 |
question = ''
|
33 |
temp = {}
|
|
|
15 |
|
16 |
library = st.radio('Select a library', ('numpy', 'tensorflow', 'pytorch', 'scipy', 'scikit-learn', 'pandas'))
|
17 |
|
18 |
+
question_path = './{}.txt'.format(library)
|
|
|
19 |
# loading stackoverflow questions.
|
20 |
# using huggingface load_dataset function.
|
21 |
# not done yet
|
|
|
26 |
|
27 |
dataset = []
|
28 |
#dataset = load_data(question_path)
|
29 |
+
with open(question_path) as f:
|
30 |
lines = f.readlines()
|
31 |
question = ''
|
32 |
temp = {}
|