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(