Spaces:
Runtime error
Runtime error
RajatChaudhari
commited on
Commit
•
003efc2
1
Parent(s):
ffc2e14
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def greet(Question):
|
|
59 |
answer = qa({"query": Question})
|
60 |
|
61 |
pa=[a.split("Helpful Answer: ") for a in answer.get('result').split('\n') if "Helpful Answer" in a]
|
62 |
-
new=pd.DataFrame({'query':Question,'response':pa[0][-1]})
|
63 |
queries.append(new)
|
64 |
queries.to_csv('./interactions/queries.csv')
|
65 |
return pa[0][-1]
|
|
|
59 |
answer = qa({"query": Question})
|
60 |
|
61 |
pa=[a.split("Helpful Answer: ") for a in answer.get('result').split('\n') if "Helpful Answer" in a]
|
62 |
+
new=pd.DataFrame.from_dict({'query':Question,'response':pa[0][-1]},orient='index')
|
63 |
queries.append(new)
|
64 |
queries.to_csv('./interactions/queries.csv')
|
65 |
return pa[0][-1]
|