Samarth991 commited on
Commit
b54fbdc
·
1 Parent(s): 0430ddb

Addind Chat functions to QA retrival chain

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- key=API_key,
67
  temperature=temperature,
68
  max_tokens=max_tokens
69
  )
@@ -123,9 +123,10 @@ title ="""<div
123
  </div>
124
  """
125
 
126
- with gr.Blocks(css=css) as demo:
127
- with gr.Column(elem_id="col-container"):
128
- gr.HTML(title)
 
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)