Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,15 +82,14 @@ def generate_response(manual, proposal):
|
|
| 82 |
proposal: {proposal}
|
| 83 |
"""
|
| 84 |
|
| 85 |
-
response = client.chat.completions.create(
|
| 86 |
-
model="gpt-5-nano",
|
| 87 |
-
messages=[{"role": "user", "content": prompt}]
|
| 88 |
-
temperature=0.1
|
| 89 |
)
|
| 90 |
-
return response.choices[0].message.content
|
| 91 |
|
| 92 |
-
def loop_function(df):
|
| 93 |
-
text = "==============================================================="
|
| 94 |
Value_of_proposal = ""
|
| 95 |
|
| 96 |
for index, row in df.iterrows():
|
|
|
|
| 82 |
proposal: {proposal}
|
| 83 |
"""
|
| 84 |
|
| 85 |
+
response = client.chat.completions.create(
|
| 86 |
+
model="gpt-5-nano",
|
| 87 |
+
messages=[{"role": "user", "content": prompt}]
|
|
|
|
| 88 |
)
|
| 89 |
+
return response.choices[0].message.content
|
| 90 |
|
| 91 |
+
def loop_function(df):
|
| 92 |
+
text = "==============================================================="
|
| 93 |
Value_of_proposal = ""
|
| 94 |
|
| 95 |
for index, row in df.iterrows():
|