botsi commited on
Commit
56ee3a0
·
verified ·
1 Parent(s): da63190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -87,15 +87,15 @@ with gr.Blocks() as demo:
87
  here your URL params:
88
  {json.dumps(url_params, indent=4)}
89
  """
90
- # Fetch personalized data
91
- personalized_data = fetch_personalized_data(session_index)
92
-
93
- if personalized_data:
94
- bot_message = "Personalized data fetched successfully."
95
- return [[bot_message, None]]
96
- else:
97
- bot_message = "Error fetching personalized data."
98
- return [[bot_message, None]]
99
 
100
  elif "print data" in history[-1][0]:
101
  personalized_data = fetch_personalized_data()
 
87
  here your URL params:
88
  {json.dumps(url_params, indent=4)}
89
  """
90
+ # Fetch personalized data
91
+ personalized_data = fetch_personalized_data(session_index)
92
+
93
+ if personalized_data:
94
+ bot_message = "Personalized data fetched successfully."
95
+ return [[bot_message, None]]
96
+ else:
97
+ bot_message = "Error fetching personalized data."
98
+ return [[bot_message, None]]
99
 
100
  elif "print data" in history[-1][0]:
101
  personalized_data = fetch_personalized_data()