Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,9 +17,6 @@ load_dotenv()
|
|
| 17 |
hugging_face_api_key = os.getenv("HUGGING_FACE_API_KEY")
|
| 18 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
| 19 |
|
| 20 |
-
print (hugging_face_api_key)
|
| 21 |
-
print (openai_api_key)
|
| 22 |
-
|
| 23 |
# Set the API key for OpenAI
|
| 24 |
# openai.api_key = openai_api_key
|
| 25 |
|
|
@@ -81,7 +78,7 @@ def talk_to_llm(user_prompt):
|
|
| 81 |
'''
|
| 82 |
|
| 83 |
data = {
|
| 84 |
-
"model": "
|
| 85 |
"response_format": { "type": "json_object" },
|
| 86 |
"messages": [
|
| 87 |
{"role": "system", "content": prompt_text},
|
|
|
|
| 17 |
hugging_face_api_key = os.getenv("HUGGING_FACE_API_KEY")
|
| 18 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# Set the API key for OpenAI
|
| 21 |
# openai.api_key = openai_api_key
|
| 22 |
|
|
|
|
| 78 |
'''
|
| 79 |
|
| 80 |
data = {
|
| 81 |
+
"model": "gpt4o",
|
| 82 |
"response_format": { "type": "json_object" },
|
| 83 |
"messages": [
|
| 84 |
{"role": "system", "content": prompt_text},
|