tommy24 commited on
Commit
504ee76
·
1 Parent(s): f92ea75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -81,7 +81,16 @@ import os
81
 
82
  def function(prompt):
83
  url = os.environ.get("test7")
84
- headers = {os.environ.get("test8")}
 
 
 
 
 
 
 
 
 
85
  data = {
86
  "input": prompt
87
  }
 
81
 
82
  def function(prompt):
83
  url = os.environ.get("test7")
84
+ referrer = os.environ.get("test13")
85
+ headers = {
86
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299",
87
+ "Accept": "application/json",
88
+ "Accept-Language": "en-US,en;q=0.5",
89
+ "Referer": referrer,
90
+ "Connection": "keep-alive",
91
+ "TE": "Trailers",
92
+ "Flag-Real-Time-Data": "true"
93
+ }
94
  data = {
95
  "input": prompt
96
  }