Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ import openai
|
|
12 |
import os
|
13 |
from display_json import get_podcast
|
14 |
from invoke_rss import get_rss_output
|
|
|
15 |
|
16 |
|
17 |
|
@@ -28,18 +29,18 @@ with gr.Blocks(theme='bethecloud/storj_theme') as demo:
|
|
28 |
</div>
|
29 |
""")
|
30 |
with gr.Tabs():
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
|
44 |
with gr.TabItem("PreProcessed Podcasts"):
|
45 |
with gr.Box():
|
|
|
12 |
import os
|
13 |
from display_json import get_podcast
|
14 |
from invoke_rss import get_rss_output
|
15 |
+
from search_recommend import search_chat_respond
|
16 |
|
17 |
|
18 |
|
|
|
29 |
</div>
|
30 |
""")
|
31 |
with gr.Tabs():
|
32 |
+
with gr.TabItem("Search Podcasts and get their RSS feeds"):
|
33 |
+
with gr.Box():
|
34 |
+
gr.Markdown(
|
35 |
+
"""
|
36 |
+
### Search Podcasts and get their RSS feeds
|
37 |
+
""")
|
38 |
+
with gr.Column():
|
39 |
+
normal_chatbot = gr.Chatbot()
|
40 |
+
normal_msg = gr.Textbox()
|
41 |
+
normal_clear = gr.Button("Clear")
|
42 |
+
normal_msg.submit(search_chat_respond, [normal_msg, normal_chatbot], [normal_msg, normal_chatbot])
|
43 |
+
normal_clear.click(lambda: None, None, normal_chatbot, queue=False)
|
44 |
|
45 |
with gr.TabItem("PreProcessed Podcasts"):
|
46 |
with gr.Box():
|