Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mwitiderrick authored Oct 13, 2023
1 parent e75476d commit 5d4cc30
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions demos/langchain-video-chat/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,6 @@
llm = DeepSparse(model=MODEL_PATH)
model = whisper.load_model("base")

system_template = """Use the following pieces of context to answer the users question.
If you don't know the answer, just say that you don't know, don't try to make up an answer.
ALWAYS return a "SOURCES" part in your answer.
The "SOURCES" part should be a reference to the source of the document from which you got your answer.
Example of your response should be:
```
The answer is foo
SOURCES: xyz
```
Begin!
----------------
{summaries}"""
messages = [
SystemMessagePromptTemplate.from_template(system_template),
HumanMessagePromptTemplate.from_template("{question}"),
]
prompt = ChatPromptTemplate.from_messages(messages)
chain_type_kwargs = {"prompt": prompt}

def transcribe(youtube_url, model):
youtube = YouTube(youtube_url)

Expand Down

0 comments on commit 5d4cc30

Please sign in to comment.