Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,18 +131,6 @@ def fetch_personalized_data(session_index):
|
|
| 131 |
# Return the JSON result
|
| 132 |
return personalized_result
|
| 133 |
|
| 134 |
-
# Call the function to fetch data as JSON
|
| 135 |
-
personalized_data = fetch_personalized_data()
|
| 136 |
-
|
| 137 |
-
# Print or use the json_result variable as needed
|
| 138 |
-
print(personalized_data)
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
|
| 147 |
with gr.Blocks() as demo:
|
| 148 |
gr.Markdown("""## Gradio send queryparam to chatbot
|
|
@@ -190,6 +178,12 @@ demo.launch()
|
|
| 190 |
|
| 191 |
|
| 192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
|
| 194 |
|
| 195 |
|
|
|
|
| 131 |
# Return the JSON result
|
| 132 |
return personalized_result
|
| 133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
with gr.Blocks() as demo:
|
| 136 |
gr.Markdown("""## Gradio send queryparam to chatbot
|
|
|
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
+
# Call the function to fetch data as JSON
|
| 182 |
+
personalized_data = fetch_personalized_data()
|
| 183 |
+
|
| 184 |
+
# Print or use the json_result variable as needed
|
| 185 |
+
print(personalized_data)
|
| 186 |
+
|
| 187 |
|
| 188 |
|
| 189 |
|