Spaces:
Build error
Build error
change the secret-key
Browse files
app.py
CHANGED
|
@@ -2,11 +2,13 @@ import gradio as gr
|
|
| 2 |
import requests
|
| 3 |
import time
|
| 4 |
|
|
|
|
|
|
|
| 5 |
# Define the API calling function
|
| 6 |
def api_call(prompt, thread_id):
|
| 7 |
url = "https://multimodalcompany-dev--talent-chatbot-dev-dev.modal.run"
|
| 8 |
headers = {
|
| 9 |
-
"key":
|
| 10 |
"Content-Type": "application/json"
|
| 11 |
}
|
| 12 |
data = {
|
|
|
|
| 2 |
import requests
|
| 3 |
import time
|
| 4 |
|
| 5 |
+
api_key = os.getenv("apichatbotacess")
|
| 6 |
+
|
| 7 |
# Define the API calling function
|
| 8 |
def api_call(prompt, thread_id):
|
| 9 |
url = "https://multimodalcompany-dev--talent-chatbot-dev-dev.modal.run"
|
| 10 |
headers = {
|
| 11 |
+
"key": api_key,
|
| 12 |
"Content-Type": "application/json"
|
| 13 |
}
|
| 14 |
data = {
|