fix6
Browse files
app.py
CHANGED
|
@@ -42,14 +42,20 @@ def get_completion_from_messages(input, model="gpt-3.5-turbo", temperature=0.8):
|
|
| 42 |
#get completion ν΅κ³Ό μμΌμ λ΅λ³μ»μ
|
| 43 |
#μ΄λ μν λΆλ΄ λ° ν둬ννΈ μμ§λμ΄λ§ μ§ν
|
| 44 |
####
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
class Interviewer:
|
| 46 |
def __init__(self):
|
| 47 |
# Initialize the ChatBot class with an empty history
|
| 48 |
self.history = []
|
| 49 |
|
| 50 |
def predict(self, user_input):
|
| 51 |
-
|
| 52 |
-
return
|
| 53 |
|
| 54 |
|
| 55 |
inter = Interviewer()
|
|
|
|
| 42 |
#get completion ν΅κ³Ό μμΌμ λ΅λ³μ»μ
|
| 43 |
#μ΄λ μν λΆλ΄ λ° ν둬ννΈ μμ§λμ΄λ§ μ§ν
|
| 44 |
####
|
| 45 |
+
class Interviewer:
|
| 46 |
+
def __init__(self):
|
| 47 |
+
self.history = []
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
class Interviewer:
|
| 52 |
def __init__(self):
|
| 53 |
# Initialize the ChatBot class with an empty history
|
| 54 |
self.history = []
|
| 55 |
|
| 56 |
def predict(self, user_input):
|
| 57 |
+
response =get_completion_from_messages(user_input, temperature=0.8)
|
| 58 |
+
return response
|
| 59 |
|
| 60 |
|
| 61 |
inter = Interviewer()
|