Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,13 +69,11 @@ def get_top_high_performers(html: str, limit: str):
|
|
| 69 |
)
|
| 70 |
|
| 71 |
final = res.message.content[0].text
|
| 72 |
-
cursor.close()
|
| 73 |
-
conn.close()
|
| 74 |
|
| 75 |
return "\n\n".join(formatted_results),final
|
| 76 |
|
| 77 |
except Exception as e:
|
| 78 |
-
return f"Error occurred: {e}"
|
| 79 |
|
| 80 |
# Define Gradio interface
|
| 81 |
interface = gr.Interface(
|
|
|
|
| 69 |
)
|
| 70 |
|
| 71 |
final = res.message.content[0].text
|
|
|
|
|
|
|
| 72 |
|
| 73 |
return "\n\n".join(formatted_results),final
|
| 74 |
|
| 75 |
except Exception as e:
|
| 76 |
+
return f"Error occurred: {e}","Error"
|
| 77 |
|
| 78 |
# Define Gradio interface
|
| 79 |
interface = gr.Interface(
|