Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,9 @@ def stream_chat_with_rag(
|
|
43 |
|
44 |
def heatmap(top_n):
|
45 |
df = pd.read_csv('submission_emotiontopics2024GPTresult.csv')
|
|
|
46 |
pivot_table = client.predict(
|
47 |
-
df =
|
48 |
top_n= top_n,
|
49 |
api_name="/get_heatmap_pivot_table"
|
50 |
)
|
|
|
43 |
|
44 |
def heatmap(top_n):
|
45 |
df = pd.read_csv('submission_emotiontopics2024GPTresult.csv')
|
46 |
+
topics_df = gr.Dataframe(value=df, label="Data Input")
|
47 |
pivot_table = client.predict(
|
48 |
+
df = topics_df,
|
49 |
top_n= top_n,
|
50 |
api_name="/get_heatmap_pivot_table"
|
51 |
)
|