tmskss commited on
Commit
ab16e67
1 Parent(s): 34c48e3

Update output, inline

Browse files
Files changed (1) hide show
  1. app.py +10 -14
app.py CHANGED
@@ -428,26 +428,22 @@ def text_to_text_generation(verbose, prompt):
428
  f"# 📚KubeWizard📚\n"
429
  f"#### A helpful Kubernetes Assistant powered by Component Soft\n"
430
  f"--------------------------------------------\n"
431
- f"# Classified your prompt as: \n"
432
  f"{modes}\n\n"
433
  f"--------------------------------------------\n"
434
- f"# Answer with finetuned model \n"
435
- f"## Prompt given to the model: \n"
436
  f"{str_to_md(res_prompt)}\n\n"
437
- f"## Model's answer: \n"
438
  f"{str_to_md(res_normal)}\n\n"
439
  f"--------------------------------------------\n"
440
- f"# Answer with RAG \n"
441
- f"## Section 1: Preparing for generation \n"
442
- f"{res_semantic_search_md} \n"
443
- f"## Section 2: Generating answer \n"
444
- f"{str_to_md(res_semantic_search)} \n"
445
  f"--------------------------------------------\n"
446
- f"# Answer with Google search \n"
447
- f"## Section 1: Preparing for generation \n"
448
- f"{res_google_search_md} \n"
449
- f"## Section 2: Generating answer \n"
450
- f"{str_to_md(res_google_search)} \n"
451
  )
452
  else:
453
  return (
 
428
  f"# 📚KubeWizard📚\n"
429
  f"#### A helpful Kubernetes Assistant powered by Component Soft\n"
430
  f"--------------------------------------------\n"
431
+ f"# Classified your prompt as:\n"
432
  f"{modes}\n\n"
433
  f"--------------------------------------------\n"
434
+ f"# Answer with finetuned model\n"
435
+ f"## Prompt given to the model:\n"
436
  f"{str_to_md(res_prompt)}\n\n"
437
+ f"## Model's answer:\n"
438
  f"{str_to_md(res_normal)}\n\n"
439
  f"--------------------------------------------\n"
440
+ f"# Answer with RAG\n"
441
+ f"## Section 1: Preparing for generation\n\n {res_semantic_search_md}\n"
442
+ f"## Section 2: Generating answer\n\n {str_to_md(res_semantic_search)}\n"
 
 
443
  f"--------------------------------------------\n"
444
+ f"# Answer with Google search\n"
445
+ f"## Section 1: Preparing for generation\n\n {res_google_search_md}\n"
446
+ f"## Section 2: Generating answer\n\n {str_to_md(res_google_search)}\n"
 
 
447
  )
448
  else:
449
  return (