Spaces:
Paused
Paused
tamas.kiss
commited on
Commit
·
07a2bd6
1
Parent(s):
e449698
Newline after line
Browse files
app.py
CHANGED
|
@@ -330,7 +330,7 @@ def text_to_text_generation(verbose, prompt):
|
|
| 330 |
|
| 331 |
return (prompt, answer[start:end].strip())
|
| 332 |
|
| 333 |
-
modes = ["Kubectl command", "Kubernetes definition", "Other"]
|
| 334 |
|
| 335 |
print(f'{" Query Start ":-^40}')
|
| 336 |
print("Classified as: " + modes[response_num])
|
|
@@ -407,19 +407,19 @@ def text_to_text_generation(verbose, prompt):
|
|
| 407 |
f"# 📚KubeWizard📚\n"
|
| 408 |
f"# Classified your prompt as:\n"
|
| 409 |
f"{modes}\n\n"
|
| 410 |
-
f"
|
| 411 |
f"# Answer with finetuned model\n"
|
| 412 |
f"## Prompt given to the model:\n"
|
| 413 |
f"{str_to_md(res_prompt)}\n\n"
|
| 414 |
f"## Model's answer:\n"
|
| 415 |
f"{str_to_md(res_normal)}\n\n"
|
| 416 |
-
f"
|
| 417 |
f"# Answer with RAG\n"
|
| 418 |
f"## Section 1: Preparing for generation\n"
|
| 419 |
f"{res_semantic_search_md}\n"
|
| 420 |
f"## Section 2: Generating answer\n"
|
| 421 |
f"{str_to_md(res_semantic_search)}\n"
|
| 422 |
-
f"
|
| 423 |
f"# Answer with Google search\n"
|
| 424 |
f"## Section 1: Preparing for generation\n"
|
| 425 |
f"{res_google_search_md}\n"
|
|
|
|
| 330 |
|
| 331 |
return (prompt, answer[start:end].strip())
|
| 332 |
|
| 333 |
+
modes = ["Kubectl command", "Kubernetes related definition", "Other"]
|
| 334 |
|
| 335 |
print(f'{" Query Start ":-^40}')
|
| 336 |
print("Classified as: " + modes[response_num])
|
|
|
|
| 407 |
f"# 📚KubeWizard📚\n"
|
| 408 |
f"# Classified your prompt as:\n"
|
| 409 |
f"{modes}\n\n"
|
| 410 |
+
f"--------------------------------------------\n"
|
| 411 |
f"# Answer with finetuned model\n"
|
| 412 |
f"## Prompt given to the model:\n"
|
| 413 |
f"{str_to_md(res_prompt)}\n\n"
|
| 414 |
f"## Model's answer:\n"
|
| 415 |
f"{str_to_md(res_normal)}\n\n"
|
| 416 |
+
f"--------------------------------------------\n"
|
| 417 |
f"# Answer with RAG\n"
|
| 418 |
f"## Section 1: Preparing for generation\n"
|
| 419 |
f"{res_semantic_search_md}\n"
|
| 420 |
f"## Section 2: Generating answer\n"
|
| 421 |
f"{str_to_md(res_semantic_search)}\n"
|
| 422 |
+
f"--------------------------------------------\n"
|
| 423 |
f"# Answer with Google search\n"
|
| 424 |
f"## Section 1: Preparing for generation\n"
|
| 425 |
f"{res_google_search_md}\n"
|