tinaranathania commited on
Commit
bd6f76f
1 Parent(s): 7257d9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -77,9 +77,9 @@ def get_response_from_query(db, query, k=4):
77
 
78
  # Webpage with Streamlit
79
 
80
- st.set_page_config(page_title="Youtube Video Q&A Demo")
81
 
82
- st.header("Langchain Application")
83
 
84
  youtube_input=st.text_input("Youtube Link: ",key="youtube_input")
85
  query=st.text_input("Your Question Here: ",key="query")
@@ -89,9 +89,9 @@ if youtube_input != "":
89
  db = create_db_from_youtube_video_url(youtube_input)
90
  response, docs = get_response_from_query(db, query)
91
 
92
- submit=st.button("Ask the question")
93
 
94
  ## If ask button is clicked
95
  if submit:
96
- st.subheader("The Response is")
97
  st.write(response)
 
77
 
78
  # Webpage with Streamlit
79
 
80
+ st.set_page_config(page_title="Youtube Video Chatbot with Langchain")
81
 
82
+ st.header("Youtube Video Chatbot with Langchain")
83
 
84
  youtube_input=st.text_input("Youtube Link: ",key="youtube_input")
85
  query=st.text_input("Your Question Here: ",key="query")
 
89
  db = create_db_from_youtube_video_url(youtube_input)
90
  response, docs = get_response_from_query(db, query)
91
 
92
+ submit=st.button("Ask a Question")
93
 
94
  ## If ask button is clicked
95
  if submit:
96
+ st.subheader("Answer:")
97
  st.write(response)