Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ file_path_download = ""
|
|
| 40 |
####################################################
|
| 41 |
#aus einem Text-Prompt die Antwort von KI bekommen
|
| 42 |
#mit oder ohne RAG möglich
|
| 43 |
-
def generate_text (prompt, chatbot, history,
|
| 44 |
print("Text pur..............................")
|
| 45 |
if (prompt == ""):
|
| 46 |
raise gr.Error("Prompt ist erforderlich.")
|
|
@@ -334,9 +334,6 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
|
|
| 334 |
attached_file_history,
|
| 335 |
chatbot,
|
| 336 |
history,
|
| 337 |
-
rag_option,
|
| 338 |
-
model_option,
|
| 339 |
-
openai_key,
|
| 340 |
anzahl_docs,
|
| 341 |
top_p,
|
| 342 |
temperature,
|
|
|
|
| 40 |
####################################################
|
| 41 |
#aus einem Text-Prompt die Antwort von KI bekommen
|
| 42 |
#mit oder ohne RAG möglich
|
| 43 |
+
def generate_text (prompt, chatbot, history, vektordatenbank, websuche, top_p=0.6, temperature=0.2, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3, top_k=35):
|
| 44 |
print("Text pur..............................")
|
| 45 |
if (prompt == ""):
|
| 46 |
raise gr.Error("Prompt ist erforderlich.")
|
|
|
|
| 334 |
attached_file_history,
|
| 335 |
chatbot,
|
| 336 |
history,
|
|
|
|
|
|
|
|
|
|
| 337 |
anzahl_docs,
|
| 338 |
top_p,
|
| 339 |
temperature,
|