Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ except Exception as e:
|
|
37 |
df = pd.DataFrame(columns=['instruction', 'response_a']) # 빈 DataFrame 생성
|
38 |
|
39 |
def get_answer(question):
|
40 |
-
matching_answer = df[df['
|
41 |
return matching_answer[0] if len(matching_answer) > 0 else None
|
42 |
|
43 |
def respond(
|
|
|
37 |
df = pd.DataFrame(columns=['instruction', 'response_a']) # 빈 DataFrame 생성
|
38 |
|
39 |
def get_answer(question):
|
40 |
+
matching_answer = df[df['instruction'] == question]['response_a'].values
|
41 |
return matching_answer[0] if len(matching_answer) > 0 else None
|
42 |
|
43 |
def respond(
|