Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,11 +77,11 @@ with gr.Blocks() as demo:
|
|
| 77 |
print(rows)
|
| 78 |
# Close the database connection
|
| 79 |
conn.close()
|
| 80 |
-
return rows #
|
| 81 |
except mysql.connector.Error as err:
|
| 82 |
print(f"Error: {err}")
|
| 83 |
return None
|
| 84 |
-
|
| 85 |
elif "print data" in history[-1][0]:
|
| 86 |
personalized_data = fetch_personalized_data()
|
| 87 |
print(personalized_data)
|
|
|
|
| 77 |
print(rows)
|
| 78 |
# Close the database connection
|
| 79 |
conn.close()
|
| 80 |
+
return [list(row) for row in rows] # Convert each row to a list
|
| 81 |
except mysql.connector.Error as err:
|
| 82 |
print(f"Error: {err}")
|
| 83 |
return None
|
| 84 |
+
|
| 85 |
elif "print data" in history[-1][0]:
|
| 86 |
personalized_data = fetch_personalized_data()
|
| 87 |
print(personalized_data)
|