Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,7 @@ def ask_llm(llm_prompt_input):
|
|
35 |
|
36 |
# Füge die formatierten Ergebnisse zum Prompt hinzu
|
37 |
enriched_prompt = f"{llm_prompt_input}\n\n### Verwandte Informationen:\n{''.join(formatted_results)}"
|
38 |
-
print(enriched_prompt)
|
39 |
-
return enriched_prompt
|
40 |
# Führe die Abfrage des LLM durch
|
41 |
result = client.predict(
|
42 |
query=enriched_prompt,
|
@@ -44,8 +43,7 @@ def ask_llm(llm_prompt_input):
|
|
44 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
45 |
api_name="/model_chat"
|
46 |
)
|
47 |
-
|
48 |
-
|
49 |
return result
|
50 |
|
51 |
def process_pdf(file):
|
|
|
35 |
|
36 |
# Füge die formatierten Ergebnisse zum Prompt hinzu
|
37 |
enriched_prompt = f"{llm_prompt_input}\n\n### Verwandte Informationen:\n{''.join(formatted_results)}"
|
38 |
+
#print(enriched_prompt)
|
|
|
39 |
# Führe die Abfrage des LLM durch
|
40 |
result = client.predict(
|
41 |
query=enriched_prompt,
|
|
|
43 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
44 |
api_name="/model_chat"
|
45 |
)
|
46 |
+
|
|
|
47 |
return result
|
48 |
|
49 |
def process_pdf(file):
|