bpHigh commited on
Commit
a8036bd
1 Parent(s): f41ed1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +47 -45
app.py CHANGED
@@ -28,18 +28,19 @@ with gr.Blocks(theme='bethecloud/storj_theme', css=".gradio-container {backgroun
28
  """)
29
  with gr.Tabs():
30
  with gr.TabItem("Search Podcasts and get their RSS feeds"):
31
- with gr.Box():
32
- gr.Markdown(
33
- """
34
- ### Search Podcasts and get their RSS feeds -- Currently Not Enabled as ListenNotes only offers limited free API calls/month
35
- """)
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_chat_respond, [normal_msg, normal_chatbot], [normal_msg, normal_chatbot])
42
- # normal_clear.click(lambda: None, None, normal_chatbot, queue=False)
 
43
 
44
  with gr.TabItem("PreProcessed Podcasts"):
45
  with gr.Box():
@@ -78,39 +79,40 @@ with gr.Blocks(theme='bethecloud/storj_theme', css=".gradio-container {backgroun
78
 
79
 
80
  with gr.TabItem("Process New Podcast using RSS feed"):
81
- with gr.Box():
82
- gr.Markdown(
83
- """
84
- ### Get details related to an RSS feed --Currently diabled due to OpenAI rate cost issues do ping me on slack if you wanna check something out
85
- """)
86
- # with gr.Column():
87
- # rss_feed = gr.Textbox(label="Enter Rss Feed here")
88
- # btn_2 = gr.Button("See")
89
- # with gr.Row().style(equal_height=True):
90
- # Title_2 = gr.Textbox(label="Title")
91
- # Episode_Name_2 = gr.Textbox(label="Episode Name")
92
- # Episode_Image_2 = gr.Image(label="Episode Image")
93
-
94
- # podcast_summary_2 = gr.Textbox(label="Summary")
95
-
96
- # with gr.Row().style(equal_height=True):
97
- # podcast_guest_2 = gr.Textbox(label="podcast guest")
98
- # podcast_guest_org_2 = gr.Textbox(label="Podcast Guest Organization")
99
- # podcast_guest_title_2 = gr.Textbox(label="Guest Title")
100
- # podcast_guest_wikipedia_2 = gr.Textbox(label="Guest Wikipedia Info")
101
-
102
- # podcast_highlights_2 = gr.Textbox(label="Highlights")
103
- # podcast_key_moments_2 = gr.Textbox(label="Key Moments and Key Topics")
104
-
105
- # with gr.Accordion("Open for Full Dialog Transcript"):
106
- # podcast_gpt_transcript_2 = gr.Textbox()
107
-
108
- # btn_2.click(fn=get_rss_output, inputs=rss_feed,
109
- # outputs=[Title_2, Episode_Name_2, Episode_Image_2, podcast_summary_2, podcast_guest_2,
110
- # podcast_guest_org_2, \
111
- # podcast_guest_title_2, podcast_guest_wikipedia_2, podcast_highlights_2,
112
- # podcast_key_moments_2, \
113
- # podcast_gpt_transcript_2])
 
114
 
115
 
116
 
 
28
  """)
29
  with gr.Tabs():
30
  with gr.TabItem("Search Podcasts and get their RSS feeds"):
31
+ with gr.Accordion("Open for Search"):
32
+ with gr.Box():
33
+ gr.Markdown(
34
+ """
35
+ ### Search Podcasts and get their RSS feeds -- Currently Not Enabled as ListenNotes only offers limited free API calls/month
36
+ """)
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():
 
79
 
80
 
81
  with gr.TabItem("Process New Podcast using RSS feed"):
82
+ with gr.Accordion("Open to process insights on a Podcast"):
83
+ with gr.Box():
84
+ gr.Markdown(
85
+ """
86
+ ### Get details related to an RSS feed --Currently diabled due to OpenAI rate cost issues do ping me on slack if you wanna check something out
87
+ """)
88
+ with gr.Column():
89
+ rss_feed = gr.Textbox(label="Enter Rss Feed here")
90
+ btn_2 = gr.Button("See")
91
+ with gr.Row().style(equal_height=True):
92
+ Title_2 = gr.Textbox(label="Title")
93
+ Episode_Name_2 = gr.Textbox(label="Episode Name")
94
+ Episode_Image_2 = gr.Image(label="Episode Image")
95
+
96
+ podcast_summary_2 = gr.Textbox(label="Summary")
97
+
98
+ with gr.Row().style(equal_height=True):
99
+ podcast_guest_2 = gr.Textbox(label="podcast guest")
100
+ podcast_guest_org_2 = gr.Textbox(label="Podcast Guest Organization")
101
+ podcast_guest_title_2 = gr.Textbox(label="Guest Title")
102
+ podcast_guest_wikipedia_2 = gr.Textbox(label="Guest Wikipedia Info")
103
+
104
+ podcast_highlights_2 = gr.Textbox(label="Highlights")
105
+ podcast_key_moments_2 = gr.Textbox(label="Key Moments and Key Topics")
106
+
107
+ with gr.Accordion("Open for Full Dialog Transcript"):
108
+ podcast_gpt_transcript_2 = gr.Textbox()
109
+
110
+ btn_2.click(fn=get_rss_output, inputs=rss_feed,
111
+ outputs=[Title_2, Episode_Name_2, Episode_Image_2, podcast_summary_2, podcast_guest_2,
112
+ podcast_guest_org_2, \
113
+ podcast_guest_title_2, podcast_guest_wikipedia_2, podcast_highlights_2,
114
+ podcast_key_moments_2, \
115
+ podcast_gpt_transcript_2])
116
 
117
 
118