Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,9 +40,7 @@ except Exception as e:
|
|
| 40 |
|
| 41 |
def getanswer(question):
|
| 42 |
matchinganswer = df[df['instruction'] == question]['responsea'].values
|
| 43 |
-
return matchinganswer[0]
|
| 44 |
-
if len(matchinganswer) 0
|
| 45 |
-
else None
|
| 46 |
|
| 47 |
def respond(
|
| 48 |
message,
|
|
|
|
| 40 |
|
| 41 |
def getanswer(question):
|
| 42 |
matchinganswer = df[df['instruction'] == question]['responsea'].values
|
| 43 |
+
return matchinganswer[0] if len(matchinganswer) > 0 else None
|
|
|
|
|
|
|
| 44 |
|
| 45 |
def respond(
|
| 46 |
message,
|