Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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', '
|
38 |
|
39 |
def get_answer(question):
|
40 |
-
matching_answer = df[df['question'] == question]['
|
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(
|