Samarth991 commited on
Commit
917fd95
1 Parent(s): bc74eaa

adding Laama chat7b model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,7 +67,7 @@ def audio_processor(wav_file,API_key,wav_model='small',llm='HuggingFace',tempera
67
  global vector_db
68
  vector_db = FAISS.from_documents(documents=texts, embedding= embedding_model)
69
  global qa
70
-
71
  if llm == 'HuggingFace':
72
  chat = llm_ops.get_hugging_face_model(
73
  model_id="meta-llama/Llama-2-7b",
@@ -146,7 +146,7 @@ with gr.Blocks(css=css) as demo:
146
  chatbot = gr.Chatbot(height=270)
147
 
148
  with gr.Row():
149
- question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
150
 
151
  with gr.Row():
152
  submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
 
67
  global vector_db
68
  vector_db = FAISS.from_documents(documents=texts, embedding= embedding_model)
69
  global qa
70
+
71
  if llm == 'HuggingFace':
72
  chat = llm_ops.get_hugging_face_model(
73
  model_id="meta-llama/Llama-2-7b",
 
146
  chatbot = gr.Chatbot(height=270)
147
 
148
  with gr.Row():
149
+ question = gr.Textbox(label="Type your question !",lines=1,interactive=True)
150
 
151
  with gr.Row():
152
  submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)