Spaces:
Runtime error
Runtime error
Commit
•
c02bc32
1
Parent(s):
26bf400
Update app.py
Browse filesCorrected some grammar in the prompt texts.
app.py
CHANGED
@@ -23,10 +23,10 @@ def chat(message):
|
|
23 |
if message.startswith('http'):
|
24 |
table = pd.read_csv(message)
|
25 |
table = table.astype(str)
|
26 |
-
response = 'thank you
|
27 |
|
28 |
elif table.empty:
|
29 |
-
response = 'Hi!
|
30 |
|
31 |
else:
|
32 |
response = tqa(table=table, query=message)["answer"]
|
|
|
23 |
if message.startswith('http'):
|
24 |
table = pd.read_csv(message)
|
25 |
table = table.astype(str)
|
26 |
+
response = 'thank you for the dataset... now you can ask questions about it'
|
27 |
|
28 |
elif table.empty:
|
29 |
+
response = 'Hi! Please send a url of a dataset in csv format. Then ask as many questions as you want about it. If you want to talk about another dataset, just send a new link.'
|
30 |
|
31 |
else:
|
32 |
response = tqa(table=table, query=message)["answer"]
|