YC-Chen commited on
Commit
83166a1
1 Parent(s): 13a7759

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ with gr.Blocks() as demo:
113
  "stream": True,
114
  }
115
 
116
- with requests.post(url, headers=HEADERS, data=json.dumps(data), stream=True) as r:
117
  for response in r.iter_lines():
118
  if len(response) > 0:
119
  text = response.decode()
 
113
  "stream": True,
114
  }
115
 
116
+ with requests.post(API_URL, headers=HEADERS, data=json.dumps(data), stream=True) as r:
117
  for response in r.iter_lines():
118
  if len(response) > 0:
119
  text = response.decode()