mwill-AImission commited on
Commit
3595adc
·
verified ·
1 Parent(s): be3f885

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -31,22 +31,4 @@ model = HfApiModel(
31
  # ------------------------------------------------------------------------------
32
  # Define the simplify_text tool.
33
  # This tool takes technical text and instructs the LLM to explain it in plain language.
34
- # It tells the model to break down complex ideas into simple sentences and explain technical terms in simple words.
35
- @tool
36
- def simplify_text(text: str) -> str:
37
- """
38
- Converts technical text into plain, everyday language.
39
- It explains any technical terms (by providing a simple definition in parentheses)
40
- and breaks down complex ideas into short, clear sentences.
41
-
42
- Args:
43
- text: A technical sentence or paragraph.
44
-
45
- Returns:
46
- A simplified explanation of the text.
47
- """
48
- # Build an improved prompt with detailed instructions:
49
- prompt = (
50
- "Please read the following technical text and explain it in plain, everyday language as if you were talking to someone with little technical knowledge. "
51
- "Break down complex ideas into simple, short sentences. If you need to use any technical terms, provide a brief definition in parentheses right after the term. "
52
- "Do not use c
 
31
  # ------------------------------------------------------------------------------
32
  # Define the simplify_text tool.
33
  # This tool takes technical text and instructs the LLM to explain it in plain language.
34
+ # It tells the model to break down complex ideas into simple sentences and explain technical term