Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
import json
|
4 |
|
5 |
-
API_KEY = "sk-or-v1-
|
6 |
|
7 |
def chat_with_bot(user_input):
|
8 |
headers = {
|
@@ -11,7 +11,7 @@ def chat_with_bot(user_input):
|
|
11 |
}
|
12 |
|
13 |
payload = {
|
14 |
-
"model": "
|
15 |
"messages": [{"role": "user", "content": user_input}]
|
16 |
}
|
17 |
|
|
|
2 |
import requests
|
3 |
import json
|
4 |
|
5 |
+
API_KEY = "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"
|
6 |
|
7 |
def chat_with_bot(user_input):
|
8 |
headers = {
|
|
|
11 |
}
|
12 |
|
13 |
payload = {
|
14 |
+
"model": "google/gemini-2.0-flash-exp:free",
|
15 |
"messages": [{"role": "user", "content": user_input}]
|
16 |
}
|
17 |
|