Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def generate_response(manual, proposal):
|
|
| 90 |
return response.choices[0].message.content # FIXED: correct path
|
| 91 |
|
| 92 |
def loop_function(df): # now properly yields
|
| 93 |
-
text = "" # FIXED: initialize
|
| 94 |
Value_of_proposal = ""
|
| 95 |
|
| 96 |
for index, row in df.iterrows():
|
|
@@ -130,6 +130,7 @@ def loop_function(df): # now properly yields
|
|
| 130 |
try:
|
| 131 |
rr = generate_response(manual_rules, proposal_details)
|
| 132 |
text += rr + "\n\n" # FIXED: accumulate
|
|
|
|
| 133 |
yield text
|
| 134 |
time.sleep(3)
|
| 135 |
except Exception as e:
|
|
|
|
| 90 |
return response.choices[0].message.content # FIXED: correct path
|
| 91 |
|
| 92 |
def loop_function(df): # now properly yields
|
| 93 |
+
text = "===============================================================" # FIXED: initialize
|
| 94 |
Value_of_proposal = ""
|
| 95 |
|
| 96 |
for index, row in df.iterrows():
|
|
|
|
| 130 |
try:
|
| 131 |
rr = generate_response(manual_rules, proposal_details)
|
| 132 |
text += rr + "\n\n" # FIXED: accumulate
|
| 133 |
+
text +="==============================================================="
|
| 134 |
yield text
|
| 135 |
time.sleep(3)
|
| 136 |
except Exception as e:
|