manabb commited on
Commit
40e92f8
·
verified ·
1 Parent(s): 16e795d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -89,7 +89,7 @@ def generate_response(manual, proposal):
89
  return response.choices[0].message.content
90
 
91
  def loop_function(df):
92
- text = "===============================================================\n"
93
  Value_of_proposal = ""
94
  E_file_No=""
95
  Name_of_proposal=""
@@ -105,16 +105,15 @@ def loop_function(df):
105
  continue
106
  if key == "File No.":
107
  E_file_No= f"E-File No: {value}. \n"
108
- text+=E_file_No
109
  continue
110
  if key == "PR No.":
111
  PR_no= f"PR No: {value}. \n"
112
- text+=PR_no
113
  continue
114
  if key == "Name of proposal":
115
  Name_of_proposal= f"Name of the proposal : {value}. \n"
116
- text+=Name_of_proposal
117
- text+="===============================================================\n"
118
  continue
119
  if key == "Value (Rs)":
120
  Value_of_proposal = f"The proposal Value is {value}. \n"
@@ -146,8 +145,8 @@ def loop_function(df):
146
  """
147
  text += "<h1>As per proposal, "+key + " : "+value+"</h1>"
148
  rr = generate_response(manual_rules, proposal_details)
149
- text += "<p>"+rr + "</p"
150
- text += "</div>"
151
  yield text
152
  time.sleep(3)
153
  except Exception as e:
 
89
  return response.choices[0].message.content
90
 
91
  def loop_function(df):
92
+ text = "<hr>"
93
  Value_of_proposal = ""
94
  E_file_No=""
95
  Name_of_proposal=""
 
105
  continue
106
  if key == "File No.":
107
  E_file_No= f"E-File No: {value}. \n"
108
+ text+="<h2>"+E_file_No+"</h2>"
109
  continue
110
  if key == "PR No.":
111
  PR_no= f"PR No: {value}. \n"
112
+ text+="<h2>"+PR_no+"</h2>"
113
  continue
114
  if key == "Name of proposal":
115
  Name_of_proposal= f"Name of the proposal : {value}. \n"
116
+ text+="<h2>"+Name_of_proposal+"</h2>"
 
117
  continue
118
  if key == "Value (Rs)":
119
  Value_of_proposal = f"The proposal Value is {value}. \n"
 
145
  """
146
  text += "<h1>As per proposal, "+key + " : "+value+"</h1>"
147
  rr = generate_response(manual_rules, proposal_details)
148
+ text += "<h2>"+rr + "</h2>"
149
+ text += "</div><hr>"
150
  yield text
151
  time.sleep(3)
152
  except Exception as e: