dmar1313 commited on
Commit
44390db
β€’
1 Parent(s): e007a6b

Rename truthbot.py to app.py

Browse files
Files changed (1) hide show
  1. truthbot.py β†’ app.py +3 -1
truthbot.py β†’ app.py RENAMED
@@ -1,5 +1,7 @@
1
  from transformers import AutoTokenizer, pipeline, logging
2
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
 
 
3
 
4
  model_name_or_path = "TheBloke/Llama-2-13B-GPTQ"
5
  model_basename = "gptq_model-4bit-128g"
@@ -53,5 +55,5 @@ pipe = pipeline(
53
  top_p=0.95,
54
  repetition_penalty=1.15
55
  )
56
-
57
  print(pipe(prompt_template)[0]['generated_text'])
 
1
  from transformers import AutoTokenizer, pipeline, logging
2
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
3
+ import gradio as gr
4
+
5
 
6
  model_name_or_path = "TheBloke/Llama-2-13B-GPTQ"
7
  model_basename = "gptq_model-4bit-128g"
 
55
  top_p=0.95,
56
  repetition_penalty=1.15
57
  )
58
+ gr.Interface.load("models/TheBloke/Wizard-Vicuna-13B-Uncensored-HF").launch()
59
  print(pipe(prompt_template)[0]['generated_text'])