Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
)
|