alexkueck commited on
Commit
0ab1740
1 Parent(s): 2cb3e6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -593,7 +593,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
593
  with gr.Row():
594
  with gr.Column(scale=5):
595
  with gr.Row():
596
- chatbot = gr.Chatbot(elem_id="li-chat",)
597
  with gr.Row():
598
  with gr.Column(scale=12):
599
  user_input = gr.Textbox(
@@ -616,6 +616,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
616
  #gr.Markdown("# Parameters")
617
  rag_option = gr.Radio(["Aus", "An"], label="RAG - LI Erweiterungen", value = "Aus")
618
  model_option = gr.Radio(["OpenAI", "HuggingFace"], label="Modellauswahl", value = "OpenAI")
 
619
 
620
  top_p = gr.Slider(
621
  minimum=-0,
@@ -624,6 +625,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
624
  step=0.05,
625
  interactive=True,
626
  label="Top-p",
 
627
  )
628
  temperature = gr.Slider(
629
  minimum=0.1,
@@ -640,6 +642,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
640
  step=8,
641
  interactive=True,
642
  label="Max Generation Tokens",
 
643
  )
644
  max_context_length_tokens = gr.Slider(
645
  minimum=0,
@@ -648,9 +651,10 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
648
  step=128,
649
  interactive=True,
650
  label="Max History Tokens",
 
651
  )
652
- repetition_penalty=gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens", visible=True)
653
- anzahl_docs = gr.Slider(label="Anzahl Dokumente", value=3, minimum=1, maximum=10, step=1, interactive=True, info="wie viele Dokumententeile aus dem Vektorstore an den prompt gehängt werden", visible=True)
654
  openai_key = gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1)
655
  ################################################
656
  # Tab zum Zeichnen mit Stable Diffusion
 
593
  with gr.Row():
594
  with gr.Column(scale=5):
595
  with gr.Row():
596
+ chatbot = gr.Chatbot(elem_id="li-chat",show_copy_button=True)
597
  with gr.Row():
598
  with gr.Column(scale=12):
599
  user_input = gr.Textbox(
 
616
  #gr.Markdown("# Parameters")
617
  rag_option = gr.Radio(["Aus", "An"], label="RAG - LI Erweiterungen", value = "Aus")
618
  model_option = gr.Radio(["OpenAI", "HuggingFace"], label="Modellauswahl", value = "OpenAI")
619
+
620
 
621
  top_p = gr.Slider(
622
  minimum=-0,
 
625
  step=0.05,
626
  interactive=True,
627
  label="Top-p",
628
+ visible=False,
629
  )
630
  temperature = gr.Slider(
631
  minimum=0.1,
 
642
  step=8,
643
  interactive=True,
644
  label="Max Generation Tokens",
645
+ visible=False,
646
  )
647
  max_context_length_tokens = gr.Slider(
648
  minimum=0,
 
651
  step=128,
652
  interactive=True,
653
  label="Max History Tokens",
654
+ visible=False,
655
  )
656
+ repetition_penalty=gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens", visible=False)
657
+ anzahl_docs = gr.Slider(label="Anzahl Dokumente", value=3, minimum=1, maximum=10, step=1, interactive=True, info="wie viele Dokumententeile aus dem Vektorstore an den prompt gehängt werden", visible=False)
658
  openai_key = gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1)
659
  ################################################
660
  # Tab zum Zeichnen mit Stable Diffusion