GabrielSchultz commited on
Commit
6cf7845
·
verified ·
1 Parent(s): a826fde

change the secret-key

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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": "dd267623-f32d-4611-9705-a94156b8cadf",
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 = {