Spaces:
Building
Building
Optimize html
Browse files- src/main.py +1 -1
- src/templates/translate.html +0 -12
src/main.py
CHANGED
@@ -30,7 +30,7 @@ def result():
|
|
30 |
#gloss_list = [sp.find_synonyms(gloss, nlp, dict_docs_spacy, dict_2000_tokens) for gloss in gloss_list_lower]
|
31 |
#print('synonym list:', gloss_list)
|
32 |
gloss_sentence = " ".join(gloss_list)
|
33 |
-
return render_template('translate.html', sentence=sentence,
|
34 |
|
35 |
@app.route('/video_feed')
|
36 |
def video_feed():
|
|
|
30 |
#gloss_list = [sp.find_synonyms(gloss, nlp, dict_docs_spacy, dict_2000_tokens) for gloss in gloss_list_lower]
|
31 |
#print('synonym list:', gloss_list)
|
32 |
gloss_sentence = " ".join(gloss_list)
|
33 |
+
return render_template('translate.html', sentence=sentence, gloss_sentence=gloss_sentence)#gloss_list=gloss_list)
|
34 |
|
35 |
@app.route('/video_feed')
|
36 |
def video_feed():
|
src/templates/translate.html
CHANGED
@@ -77,18 +77,6 @@
|
|
77 |
</div>
|
78 |
</div>
|
79 |
</div>
|
80 |
-
<!--<div class="container">
|
81 |
-
<div class="row">
|
82 |
-
<div class="col-8" style="background-color: lightblue;">
|
83 |
-
This is the text gloss list we have generated:
|
84 |
-
</div>
|
85 |
-
<div class="col-4" style="background-color: lightgreen;">
|
86 |
-
<div id="output" class="border p-2">
|
87 |
-
{{ gloss_list }}
|
88 |
-
</div>
|
89 |
-
</div>
|
90 |
-
</div>
|
91 |
-
</div>-->
|
92 |
<div class="container">
|
93 |
<div class="row">
|
94 |
<div class="col-8" style="background-color: lightblue;">
|
|
|
77 |
</div>
|
78 |
</div>
|
79 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
<div class="container">
|
81 |
<div class="row">
|
82 |
<div class="col-8" style="background-color: lightblue;">
|