Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,6 @@ def generate_response(prompt, openai_api_key, image_info="", reasoning_effort="m
|
|
24 |
{"role": "system", "content": "You are a helpful assistant."},
|
25 |
{"role": "user", "content": full_prompt},
|
26 |
],
|
27 |
-
temperature=0.7,
|
28 |
max_completion_tokens=300, # Use max_completion_tokens instead of max_tokens
|
29 |
reasoning_effort=reasoning_effort # Include reasoning_effort in the request
|
30 |
)
|
@@ -96,4 +95,4 @@ def create_interface():
|
|
96 |
# Run the interface
|
97 |
if __name__ == "__main__":
|
98 |
demo = create_interface()
|
99 |
-
demo.launch()
|
|
|
24 |
{"role": "system", "content": "You are a helpful assistant."},
|
25 |
{"role": "user", "content": full_prompt},
|
26 |
],
|
|
|
27 |
max_completion_tokens=300, # Use max_completion_tokens instead of max_tokens
|
28 |
reasoning_effort=reasoning_effort # Include reasoning_effort in the request
|
29 |
)
|
|
|
95 |
# Run the interface
|
96 |
if __name__ == "__main__":
|
97 |
demo = create_interface()
|
98 |
+
demo.launch()
|