Update app.py
Browse files
app.py
CHANGED
@@ -258,7 +258,7 @@ def Chart_Generator(history):
|
|
258 |
|
259 |
message = history[-1][0]
|
260 |
if '#chart' in message:
|
261 |
-
message =
|
262 |
chart_url = f"https://quickchart.io/natural/{message}"
|
263 |
response = requests.get(chart_url)
|
264 |
|
|
|
258 |
|
259 |
message = history[-1][0]
|
260 |
if '#chart' in message:
|
261 |
+
message = message.split('#chart', 1)[1].strip()
|
262 |
chart_url = f"https://quickchart.io/natural/{message}"
|
263 |
response = requests.get(chart_url)
|
264 |
|