karths commited on
Commit
4878941
·
verified ·
1 Parent(s): d733713

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,7 +141,7 @@ Explain why this issue might be classified as a **{quality_name}** issue. Provid
141
  try:
142
  explanation = llama_generate(prompt)
143
  # Format for better readability, directly including the quality name.
144
- formatted_explanation = f"<p>{explanation}</p>"
145
  return f"<div style='overflow-y: scroll; max-height: 400px;'>{formatted_explanation}</div>"
146
  except Exception as e:
147
  logging.error(f"Error during Llama generation: {e}")
@@ -262,7 +262,7 @@ interface = gr.Interface(
262
  gr.Markdown(label="Explanation")
263
  ],
264
  title="QualityTagger",
265
- description="This tool classifies text into different quality domains such as Security, Usability, etc., and provides explanations.",
266
  examples=example_texts,
267
  css=css # Apply the CSS
268
  )
 
141
  try:
142
  explanation = llama_generate(prompt)
143
  # Format for better readability, directly including the quality name.
144
+ formatted_explanation = f"<p><b>{quality_name}:</b></p><p>{explanation}</p>"
145
  return f"<div style='overflow-y: scroll; max-height: 400px;'>{formatted_explanation}</div>"
146
  except Exception as e:
147
  logging.error(f"Error during Llama generation: {e}")
 
262
  gr.Markdown(label="Explanation")
263
  ],
264
  title="QualityTagger",
265
+ description="This tool classifies text into different quality domains such as Security, Usability,Mantainability, Reliability etc., and provides explanations.",
266
  examples=example_texts,
267
  css=css # Apply the CSS
268
  )