Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,8 @@ def stream_chat_with_rag(
|
|
29 |
# Debugging: Print the raw response
|
30 |
print("Raw answer from API:")
|
31 |
print(answer)
|
32 |
-
|
|
|
33 |
|
34 |
return answer, fig
|
35 |
|
@@ -41,7 +42,7 @@ def heatmap(top_n):
|
|
41 |
top_n= top_n,
|
42 |
api_name="/heatmap"
|
43 |
)
|
44 |
-
print(fig)
|
45 |
return fig
|
46 |
|
47 |
# Create Gradio interface
|
|
|
29 |
# Debugging: Print the raw response
|
30 |
print("Raw answer from API:")
|
31 |
print(answer)
|
32 |
+
print("top works from API:")
|
33 |
+
print(fig)
|
34 |
|
35 |
return answer, fig
|
36 |
|
|
|
42 |
top_n= top_n,
|
43 |
api_name="/heatmap"
|
44 |
)
|
45 |
+
print(type(fig))
|
46 |
return fig
|
47 |
|
48 |
# Create Gradio interface
|