alexkueck commited on
Commit
c6772aa
1 Parent(s): 371a1c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -135,7 +135,6 @@ os.environ["HUGGINGFACEHUB_API_TOKEN"] = HUGGINGFACEHUB_API_TOKEN
135
  ##############################################
136
  #wenn löschen Button geklickt
137
  def clear_all():
138
-
139
  return None, gr.Image(visible=False)
140
 
141
  ##############################################
@@ -532,7 +531,7 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
532
  result = rag_chain(llm, history_text_und_prompt, db)
533
  else:
534
  print("LLM aufrufen ohne RAG: ...........")
535
- result = llm_chain(llm, history_text_und_prompt)
536
 
537
  except Exception as e:
538
  raise gr.Error(e)
@@ -712,7 +711,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
712
 
713
  # Chatbot
714
  transfer_input_args = dict(
715
- fn=add_text, inputs=[chatbot, history, user_input, upload], outputs=[chatbot, history, user_question, user_input], show_progress=True
716
  )
717
 
718
  predict_event1 = user_input.submit(**transfer_input_args, queue=False,).then(**predict_args)
 
135
  ##############################################
136
  #wenn löschen Button geklickt
137
  def clear_all():
 
138
  return None, gr.Image(visible=False)
139
 
140
  ##############################################
 
531
  result = rag_chain(llm, history_text_und_prompt, db)
532
  else:
533
  print("LLM aufrufen ohne RAG: ...........")
534
+ result = " Ein Text " #llm_chain(llm, history_text_und_prompt)
535
 
536
  except Exception as e:
537
  raise gr.Error(e)
 
711
 
712
  # Chatbot
713
  transfer_input_args = dict(
714
+ fn=add_text, inputs=[chatbot, history, user_input, attached_file], outputs=[chatbot, history, user_question, user_input], show_progress=True
715
  )
716
 
717
  predict_event1 = user_input.submit(**transfer_input_args, queue=False,).then(**predict_args)