-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTests.py
More file actions
47 lines (37 loc) · 1 KB
/
Tests.py
File metadata and controls
47 lines (37 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 21 22:01:26 2022
@author: Philanoe
Tests for the Multi-context question answering chatbot
Ask a question Q
Question = UserInput()
Find the label
Label = Classifier(Question)
Get the context data related to this label
Context = GetContext(Label)
Get the answer from the context data
Answer = QuestionAnswering(Question, Context)
Answer the user
AnswerUser(Answer)
"""
import Chatbot as chat
import StreamlitPage as app
def MainTestFunction():
app.InitStreamLitPage()
Question = app.UserInput()
def TestStreamLit():
app.InitStreamLitPage()
Question = app.UserInput()
app.AnswerUser(Question)
def test():
print("test")
def TestInput():
return input("please enter a question : ")
#def TestStreamLit():
if __name__ == '__main__':
#print("start of the test program")
#test()
#MyInput = TestInput()
#print(f'\nYour question was : {MyInput}\n')
TestStreamLit()
#print("end of the test program")