alexkueck commited on
Commit
8f58f98
1 Parent(s): d2db8f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -480,7 +480,9 @@ def generate_text_zu_bild(file, prompt):
480
  #mit oder ohne RAG möglich
481
  def generate_text (prompt, chatbot, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,):
482
  global splittet
483
- print(splittet)
 
 
484
 
485
  if (openai_api_key == "" or openai_api_key == "sk-"):
486
  #raise gr.Error("OpenAI API Key is required.")
@@ -615,7 +617,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
615
  with gr.Column(min_width=50, scale=1):
616
  with gr.Tab(label="Parameter Einstellung"):
617
  #gr.Markdown("# Parameters")
618
- rag_option = gr.Radio(["Aus", "An"], label="RAG - LI Erweiterungen", value = "Aus")
619
  model_option = gr.Radio(["OpenAI", "HuggingFace"], label="Modellauswahl", value = "OpenAI")
620
 
621
 
 
480
  #mit oder ohne RAG möglich
481
  def generate_text (prompt, chatbot, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,):
482
  global splittet
483
+
484
+ print("prompt:.......................")
485
+ print(prompt)
486
 
487
  if (openai_api_key == "" or openai_api_key == "sk-"):
488
  #raise gr.Error("OpenAI API Key is required.")
 
617
  with gr.Column(min_width=50, scale=1):
618
  with gr.Tab(label="Parameter Einstellung"):
619
  #gr.Markdown("# Parameters")
620
+ rag_option = gr.Radio(["Aus", "An"], label="LI Erweiterungen (RAG)", value = "Aus")
621
  model_option = gr.Radio(["OpenAI", "HuggingFace"], label="Modellauswahl", value = "OpenAI")
622
 
623