Samarth991 commited on
Commit
b2a19a3
·
1 Parent(s): 989332e

adding Prompt

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -120,12 +120,6 @@ def add_text(history, text):
120
  return history, ""
121
 
122
 
123
- ##################################################
124
- ##################################################
125
- ################### GRADIO #######################
126
- ##################################################
127
- ##################################################
128
-
129
  css="""
130
  #col-container {max-width: 1080px; margin-left: auto; margin-right: auto;}
131
  """
@@ -133,7 +127,7 @@ css="""
133
  title = """
134
  <div style="text-align: center;max-width: 1080px;">
135
  <h1>Chat with Youtube Videos </h1>
136
- <p style="text-align: center;">Upload a youtube link of any lecture or video and you are able to ask QA as chatbot with the tool
137
  It gives you option to use HuggingFace/OpenAI as LLM's, make sure to add your key.
138
  </p>
139
  </div>
@@ -157,7 +151,10 @@ with gr.Blocks(css=css) as demo:
157
  question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
158
  submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
159
  clean_chat_btn = gr.Button("Delete Chat")
160
-
 
 
 
161
  with gr.Column():
162
  with gr.Box():
163
  youtube_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
 
120
  return history, ""
121
 
122
 
 
 
 
 
 
 
123
  css="""
124
  #col-container {max-width: 1080px; margin-left: auto; margin-right: auto;}
125
  """
 
127
  title = """
128
  <div style="text-align: center;max-width: 1080px;">
129
  <h1>Chat with Youtube Videos </h1>
130
+ <p style="text-align: center;">Upload a youtube link of any video-lecture/song/Research and you are able to ask QA as chatbot with the tool
131
  It gives you option to use HuggingFace/OpenAI as LLM's, make sure to add your key.
132
  </p>
133
  </div>
 
151
  question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
152
  submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
153
  clean_chat_btn = gr.Button("Delete Chat")
154
+
155
+ examples_set = gr.Radio(label="Examples of some You tube Video ",choices=["https://www.youtube.com/watch?v=aircAruvnKk&ab_channel=3Blue1Brown",
156
+ "https://www.youtube.com/watch?v=5p248yoa3oE&ab_channel=StanfordOnline","https://www.youtube.com/watch?v=Ilg3gGewQ5U" ])
157
+
158
  with gr.Column():
159
  with gr.Box():
160
  youtube_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)