tolgadev commited on
Commit
8af5ec0
1 Parent(s): b532d19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -37,7 +37,8 @@ def reset_state():
37
 
38
  with gr.Blocks() as demo:
39
  gr.HTML("""<h1 align="center">TrendyolLLM Chatbot Demo</h1>
40
- <h3 align="center">This is unofficial demo of [```tolgadev/Trendyol-LLM-7b-chat-v0.1-GGUF```](https://huggingface.co/tolgadev/Trendyol-LLM-7b-chat-v0.1-GGUF) model based on ```LLama2 architecture```.</h3>""")
 
41
 
42
  chatbot = gr.Chatbot()
43
  with gr.Row():
@@ -45,9 +46,9 @@ with gr.Blocks() as demo:
45
  user_input = gr.Textbox(show_label=False, placeholder="Input...", lines=8, elem_id="user_input")
46
  submitBtn = gr.Button("Submit", variant="primary", elem_id="submit_btn")
47
  with gr.Column(scale=1):
48
- max_length = gr.Slider(0, 256, value=64, step=1.0, label="Maximum Length", interactive=True)
49
  top_p = gr.Slider(0, 1, value=0.7, step=0.01, label="Top P", interactive=True)
50
- temperature = gr.Slider(0, 2.0, value=0.95, step=0.01, label="Temperature", interactive=True)
51
  emptyBtn = gr.Button("Clear History")
52
 
53
  history = gr.State([])
 
37
 
38
  with gr.Blocks() as demo:
39
  gr.HTML("""<h1 align="center">TrendyolLLM Chatbot Demo</h1>
40
+ <h3 align="center">This is unofficial demo of ```tolgadev/Trendyol-LLM-7b-chat-v0.1-GGUF``` model based on ```LLama2 architecture```.</h3>
41
+ <h4 align="center">Hit the like button if you liked! 🤗</h4>""")
42
 
43
  chatbot = gr.Chatbot()
44
  with gr.Row():
 
46
  user_input = gr.Textbox(show_label=False, placeholder="Input...", lines=8, elem_id="user_input")
47
  submitBtn = gr.Button("Submit", variant="primary", elem_id="submit_btn")
48
  with gr.Column(scale=1):
49
+ max_length = gr.Slider(0, 2048, value=1024, step=2.0, label="Maximum Length", interactive=True)
50
  top_p = gr.Slider(0, 1, value=0.7, step=0.01, label="Top P", interactive=True)
51
+ temperature = gr.Slider(0, 1.0, value=0.7, step=0.1, label="Temperature", interactive=True)
52
  emptyBtn = gr.Button("Clear History")
53
 
54
  history = gr.State([])