bpHigh commited on
Commit
448cd31
1 Parent(s): e092637

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
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
- # with gr.TabItem("Search Podcasts and get their RSS feeds"):
32
- # with gr.Box():
33
- # gr.Markdown(
34
- # """
35
- # ### Search Podcasts and get their RSS feeds
36
- # """)
37
- # with gr.Column():
38
- # # normal_chatbot = gr.Chatbot()
39
- # # normal_msg = gr.Textbox()
40
- # # normal_clear = gr.Button("Clear")
41
- # # normal_msg.submit(search_response, [normal_msg, normal_chatbot, dropdown], [normal_msg, normal_chatbot])
42
- # # normal_clear.click(lambda: None, None, normal_chatbot_copilot, queue=False)
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():