Tonic commited on
Commit
78f1c33
1 Parent(s): 181a56d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -31,9 +31,8 @@ df = pd.read_csv("lang_list.csv")
31
  choices = df["name"].to_list()
32
  inputlanguage = ""
33
  producetext = "\n\nProduce a complete expositional blog post in {target_language} based on the above :"
34
- formatinputstring = "\n\nthe above text is a learning aid. you must use rich text format to rewrite the above and add 1 . a red color tags for nouns 2. a blue color tag for verbs 3. a green color tag for adjectives and adverbs:"
35
  translatetextinst = "\n\nthe above text is a learning aid. you must use markdown format to translate the above into {inputlanguage} :'"
36
- # Regular expression patterns for each color
37
  patterns = {
38
  "red": r'<span style="color: red;">(.*?)</span>',
39
  "blue": r'<span style="color: blue;">(.*?)</span>',
 
31
  choices = df["name"].to_list()
32
  inputlanguage = ""
33
  producetext = "\n\nProduce a complete expositional blog post in {target_language} based on the above :"
34
+ formatinputstring = "\n\nthe above text is a learning aid. you must use rich text format to rewrite the above and add 1 . a red color tags for nouns 2. a blue color tag for verbs 3. a green color tag for adjectives and adverbs: Example: <span style="color: red;">(.?)</span>. Don't change other format of span tag other than color and the (.?)."
35
  translatetextinst = "\n\nthe above text is a learning aid. you must use markdown format to translate the above into {inputlanguage} :'"
 
36
  patterns = {
37
  "red": r'<span style="color: red;">(.*?)</span>',
38
  "blue": r'<span style="color: blue;">(.*?)</span>',