PetrovDE commited on
Commit
b57c185
1 Parent(s): c17af31

edit onw anser

Browse files
Files changed (3) hide show
  1. corssencode_inference.py +1 -1
  2. main.py +1 -1
  3. templates/index.html +1 -1
corssencode_inference.py CHANGED
@@ -54,4 +54,4 @@ def get_best_answer(
54
  context: str,
55
  question: str
56
  ) -> str:
57
- return get_range_answers(context, question, 1)[0][1]
 
54
  context: str,
55
  question: str
56
  ) -> str:
57
+ return get_range_answers(context, question, 1)
main.py CHANGED
@@ -36,4 +36,4 @@ def index():
36
 
37
 
38
  if __name__ == '__main__':
39
- app.run('localhost', 5000)
 
36
 
37
 
38
  if __name__ == '__main__':
39
+ app.run()
templates/index.html CHANGED
@@ -29,7 +29,7 @@
29
  <label>
30
  <input type="text" name="question"/>
31
  </label>
32
- <input type="submit" value="One answer" name="get_answer"/>
33
  <input type="submit" value="Five answer" name="get_answer_corpus" />
34
  </form>
35
  </body>
 
29
  <label>
30
  <input type="text" name="question"/>
31
  </label>
32
+ <input type="submit" value="One answer" name="get_answer" />
33
  <input type="submit" value="Five answer" name="get_answer_corpus" />
34
  </form>
35
  </body>