Sunghokim commited on
Commit
7b693db
·
verified ·
1 Parent(s): abacdac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,10 +34,10 @@ try:
34
  print(f"컬럼: {df.columns}")
35
  except Exception as e:
36
  print(f"Parquet 파일 로드 중 오류 발생: {e}")
37
- df = pd.DataFrame(columns=['question', 'response_a']) # 빈 DataFrame 생성
38
 
39
  def get_answer(question):
40
- matching_answer = df[df['question'] == question]['response_b'].values
41
  return matching_answer[0] if len(matching_answer) > 0 else None
42
 
43
  def respond(
 
34
  print(f"컬럼: {df.columns}")
35
  except Exception as e:
36
  print(f"Parquet 파일 로드 중 오류 발생: {e}")
37
+ df = pd.DataFrame(columns=['question', 'answer']) # 빈 DataFrame 생성
38
 
39
  def get_answer(question):
40
+ matching_answer = df[df['question'] == question]['answer'].values
41
  return matching_answer[0] if len(matching_answer) > 0 else None
42
 
43
  def respond(