Update app.py
Browse files
app.py
CHANGED
@@ -327,7 +327,6 @@
|
|
327 |
# 4. Click Analyze to get results""")
|
328 |
|
329 |
# demo.launch(share=True)
|
330 |
-
|
331 |
import os
|
332 |
import openai
|
333 |
import gradio as gr
|
@@ -350,7 +349,7 @@ def get_single_prompt(user_input):
|
|
350 |
f"User input: \"{user_input}\""
|
351 |
)
|
352 |
|
353 |
-
response = openai.
|
354 |
model="gpt-4o", # adjust model name if needed
|
355 |
messages=[{"role": "user", "content": prompt_instruction}],
|
356 |
temperature=0.3,
|
@@ -430,3 +429,4 @@ with gr.Blocks() as demo:
|
|
430 |
|
431 |
|
432 |
|
|
|
|
327 |
# 4. Click Analyze to get results""")
|
328 |
|
329 |
# demo.launch(share=True)
|
|
|
330 |
import os
|
331 |
import openai
|
332 |
import gradio as gr
|
|
|
349 |
f"User input: \"{user_input}\""
|
350 |
)
|
351 |
|
352 |
+
response = openai.chat.completions.create(
|
353 |
model="gpt-4o", # adjust model name if needed
|
354 |
messages=[{"role": "user", "content": prompt_instruction}],
|
355 |
temperature=0.3,
|
|
|
429 |
|
430 |
|
431 |
|
432 |
+
|