nroggendorff commited on
Commit
bf1e364
·
verified ·
1 Parent(s): 418ed70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import os
3
  import torch
4
  from transformers import AutoTokenizer, AutoModelForCausalLM
5
 
6
- model_path = "cognitivecomputations/dolphin-2.7-mixtral-8x7b"
7
  tokenizer = AutoTokenizer.from_pretrained(model_path)
8
  model = AutoModelForCausalLM.from_pretrained(model_path)
9
 
@@ -16,7 +16,7 @@ def chat(prompt):
16
  demo = gr.Interface(
17
  fn=chat,
18
  inputs=gr.Textbox(placeholder="Enter your message here", lines=5),
19
- outputs=gr.Textbox(label="Bot's Response", lines=5)
20
  )
21
 
22
  if __name__ == "__main__":
 
3
  import torch
4
  from transformers import AutoTokenizer, AutoModelForCausalLM
5
 
6
+ model_path = "TheBloke/dolphin-2.7-mixtral-8x7b-GGUF"
7
  tokenizer = AutoTokenizer.from_pretrained(model_path)
8
  model = AutoModelForCausalLM.from_pretrained(model_path)
9
 
 
16
  demo = gr.Interface(
17
  fn=chat,
18
  inputs=gr.Textbox(placeholder="Enter your message here", lines=5),
19
+ outputs=gr.Textbox(label="Response", lines=5)
20
  )
21
 
22
  if __name__ == "__main__":