Spaces:
Sleeping
Sleeping
Samarth991
commited on
Commit
·
b54fbdc
1
Parent(s):
0430ddb
Addind Chat functions to QA retrival chain
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def youtube_chat(youtube_link,API_key,llm='HuggingFace',temperature=0.1,max_toke
|
|
63 |
if llm == 'HuggingFace':
|
64 |
chat = chatops.get_hugging_face_model(
|
65 |
model_id="tiiuae/falcon-7b-instruct",
|
66 |
-
|
67 |
temperature=temperature,
|
68 |
max_tokens=max_tokens
|
69 |
)
|
@@ -123,9 +123,10 @@ title ="""<div
|
|
123 |
</div>
|
124 |
"""
|
125 |
|
126 |
-
with gr.Blocks(
|
127 |
-
with gr.
|
128 |
-
gr.
|
|
|
129 |
|
130 |
with gr.Group():
|
131 |
chatbot = gr.Chatbot(height=300)
|
|
|
63 |
if llm == 'HuggingFace':
|
64 |
chat = chatops.get_hugging_face_model(
|
65 |
model_id="tiiuae/falcon-7b-instruct",
|
66 |
+
API_key=API_key,
|
67 |
temperature=temperature,
|
68 |
max_tokens=max_tokens
|
69 |
)
|
|
|
123 |
</div>
|
124 |
"""
|
125 |
|
126 |
+
with gr.Blocks() as demo:
|
127 |
+
with gr.Row():
|
128 |
+
with gr.Column(elem_id="col-container"):
|
129 |
+
gr.HTML(title)
|
130 |
|
131 |
with gr.Group():
|
132 |
chatbot = gr.Chatbot(height=300)
|