Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,9 +142,9 @@ def lookup_profile(assessment_id_input):
|
|
| 142 |
|
| 143 |
result = df[df.Assessment_ID == assessment_id]
|
| 144 |
if not result.empty:
|
| 145 |
-
if isinstance(
|
| 146 |
return result.to_html()
|
| 147 |
-
elif isinstance(
|
| 148 |
return result.to_frame().to_html()
|
| 149 |
else:
|
| 150 |
#state.update("No profiles found for this ID", color="red")
|
|
|
|
| 142 |
|
| 143 |
result = df[df.Assessment_ID == assessment_id]
|
| 144 |
if not result.empty:
|
| 145 |
+
if isinstance(result, pd.DataFrame):
|
| 146 |
return result.to_html()
|
| 147 |
+
elif isinstance(result, pd.Series):
|
| 148 |
return result.to_frame().to_html()
|
| 149 |
else:
|
| 150 |
#state.update("No profiles found for this ID", color="red")
|