Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -44,8 +44,8 @@ def bot():
|
|
| 44 |
#user_question = data["user_question"]
|
| 45 |
print(json_table)
|
| 46 |
print(user_question)
|
| 47 |
-
|
| 48 |
-
df = pd.DataFrame(
|
| 49 |
#df['Profit'] = df['Profit'].apply(lambda x: "R{:.1f}".format((x)))
|
| 50 |
#df['Revenue'] = df['Revenue'].apply(lambda x: "R{:.1f}".format((x)))
|
| 51 |
llm = GooglePalm(temperature=0, google_api_key=os.environ['PALM'])
|
|
|
|
| 44 |
#user_question = data["user_question"]
|
| 45 |
print(json_table)
|
| 46 |
print(user_question)
|
| 47 |
+
data = eval(json_table)
|
| 48 |
+
df = pd.DataFrame(data)
|
| 49 |
#df['Profit'] = df['Profit'].apply(lambda x: "R{:.1f}".format((x)))
|
| 50 |
#df['Revenue'] = df['Revenue'].apply(lambda x: "R{:.1f}".format((x)))
|
| 51 |
llm = GooglePalm(temperature=0, google_api_key=os.environ['PALM'])
|