Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ with gr.Blocks() as demo:
|
|
| 39 |
def bot(history, url_params):
|
| 40 |
if "read query" in history[-1][0]:
|
| 41 |
session_index = url_params.get('session_index')
|
|
|
|
| 42 |
|
| 43 |
# Connect to the database
|
| 44 |
conn = mysql.connector.connect(
|
|
@@ -81,7 +82,6 @@ with gr.Blocks() as demo:
|
|
| 81 |
bot_message = f"""
|
| 82 |
here your URL params:
|
| 83 |
{json.dumps(url_params, indent=4)}
|
| 84 |
-
and those are your database results: {rows}
|
| 85 |
"""
|
| 86 |
|
| 87 |
elif "print data" in history[-1][0]:
|
|
|
|
| 39 |
def bot(history, url_params):
|
| 40 |
if "read query" in history[-1][0]:
|
| 41 |
session_index = url_params.get('session_index')
|
| 42 |
+
print(session_index)
|
| 43 |
|
| 44 |
# Connect to the database
|
| 45 |
conn = mysql.connector.connect(
|
|
|
|
| 82 |
bot_message = f"""
|
| 83 |
here your URL params:
|
| 84 |
{json.dumps(url_params, indent=4)}
|
|
|
|
| 85 |
"""
|
| 86 |
|
| 87 |
elif "print data" in history[-1][0]:
|