Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ except Exception as e:
|
|
39 |
|
40 |
def getanswer(instruction):
|
41 |
matchingresponse = df[df['instruction'] == instruction][['responsea', 'responseb']].values
|
42 |
-
if len(matchingresponse)
|
43 |
return matchingresponse[0]
|
44 |
else:
|
45 |
return None
|
|
|
39 |
|
40 |
def getanswer(instruction):
|
41 |
matchingresponse = df[df['instruction'] == instruction][['responsea', 'responseb']].values
|
42 |
+
if len(matchingresponse) 0:
|
43 |
return matchingresponse[0]
|
44 |
else:
|
45 |
return None
|