Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -169,6 +169,7 @@ def generate_ai_report(df_summary: str, api_key: str = None, model: str = "gpt-4
|
|
| 169 |
max_tokens=2000,
|
| 170 |
temperature=0.7
|
| 171 |
)
|
|
|
|
| 172 |
|
| 173 |
return response.choices[0].message.content
|
| 174 |
|
|
@@ -237,10 +238,10 @@ def build_interface():
|
|
| 237 |
)
|
| 238 |
|
| 239 |
model_dropdown = gr.Dropdown(
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
|
| 245 |
sample_rows = gr.Slider(
|
| 246 |
minimum=0,
|
|
|
|
| 169 |
max_tokens=2000,
|
| 170 |
temperature=0.7
|
| 171 |
)
|
| 172 |
+
|
| 173 |
|
| 174 |
return response.choices[0].message.content
|
| 175 |
|
|
|
|
| 238 |
)
|
| 239 |
|
| 240 |
model_dropdown = gr.Dropdown(
|
| 241 |
+
label="OpenAI Model",
|
| 242 |
+
choices=["gpt-4o-mini", "gpt-4o", "gpt-4.1-mini", "gpt-4.1"],
|
| 243 |
+
value="gpt-4o-mini",
|
| 244 |
+
)
|
| 245 |
|
| 246 |
sample_rows = gr.Slider(
|
| 247 |
minimum=0,
|