ysharma HF staff commited on
Commit
1075494
·
1 Parent(s): 63382a3
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def predict_chatgpt(inputs, top_p_chatgpt, temperature_chatgpt, openai_api_key,
63
  # make a POST request to the API endpoint using the requests.post method, passing in stream=True
64
  response = requests.post(API_URL, headers=headers, json=payload, stream=True)
65
  token_counter = 0
66
- partial_words = ""
67
 
68
  counter=0
69
  for chunk in response.iter_lines():
 
63
  # make a POST request to the API endpoint using the requests.post method, passing in stream=True
64
  response = requests.post(API_URL, headers=headers, json=payload, stream=True)
65
  token_counter = 0
66
+ partial_words = ""
67
 
68
  counter=0
69
  for chunk in response.iter_lines():