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