Roger Condori commited on
Commit
ae5dbd6
1 Parent(s): 991be94

change text load modelsapp.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -110,14 +110,17 @@ with gr.Blocks(theme=theme, css=css) as demo:
110
  top_k = gr.inputs.Slider(0.01, 1., default=0.95, label="Top K", step=0.01)
111
  top_p = gr.inputs.Slider(0, 100, default=50, label="Top P", step=1)
112
  repeat_penalty = gr.inputs.Slider(0.1, 100., default=1.2, label="Repeat penalty", step=0.1)
113
- change_model_button = gr.Button("Load Model")
114
  model_verify = gr.HTML("Loaded model Falcon 7B-instruct")
115
  default_model = gr.HTML("<hr><h4>Default Model</h2>")
116
- falcon_button = gr.Button("FALCON 7B-Instruct")
117
 
118
  msg.submit(predict,[msg, chatbot, max_docs],[msg, chatbot]).then(convert,[],[sou])
119
 
120
  change_model_button.click(dc.change_llm,[repo_, file_, max_tokens, temperature, top_p, top_k, repeat_penalty, max_docs],[model_verify])
121
  falcon_button.click(dc.default_falcon_model, [], [model_verify])
122
-
 
 
 
123
  demo.launch(enable_queue=True)
 
110
  top_k = gr.inputs.Slider(0.01, 1., default=0.95, label="Top K", step=0.01)
111
  top_p = gr.inputs.Slider(0, 100, default=50, label="Top P", step=1)
112
  repeat_penalty = gr.inputs.Slider(0.1, 100., default=1.2, label="Repeat penalty", step=0.1)
113
+ change_model_button = gr.Button("Load GGML Model")
114
  model_verify = gr.HTML("Loaded model Falcon 7B-instruct")
115
  default_model = gr.HTML("<hr><h4>Default Model</h2>")
116
+ falcon_button = gr.Button("Load FALCON 7B-Instruct")
117
 
118
  msg.submit(predict,[msg, chatbot, max_docs],[msg, chatbot]).then(convert,[],[sou])
119
 
120
  change_model_button.click(dc.change_llm,[repo_, file_, max_tokens, temperature, top_p, top_k, repeat_penalty, max_docs],[model_verify])
121
  falcon_button.click(dc.default_falcon_model, [], [model_verify])
122
+ print(langchain.__version__)
123
+ print(gradio.__version__)
124
+ print(param.__version__)
125
+ print(DEMO)
126
  demo.launch(enable_queue=True)