Spaces:
Running
Running
yuntian-deng
commited on
Commit
•
c9b4041
1
Parent(s):
3da69a6
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,6 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
|
|
41 |
"Headers": f"{headers_dict}"
|
42 |
}
|
43 |
|
44 |
-
# print(f"chat_counter - {chat_counter}")
|
45 |
if chat_counter != 0 :
|
46 |
messages = []
|
47 |
for i, data in enumerate(history):
|
@@ -85,8 +84,6 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
|
|
85 |
# raise Exception(f"Sorry, hitting rate limit. Please try again later. {response}")
|
86 |
|
87 |
for chunk in response.iter_lines():
|
88 |
-
print (chunk)
|
89 |
-
sys.stdout.flush()
|
90 |
#Skipping first chunk
|
91 |
if counter == 0:
|
92 |
counter += 1
|
|
|
41 |
"Headers": f"{headers_dict}"
|
42 |
}
|
43 |
|
|
|
44 |
if chat_counter != 0 :
|
45 |
messages = []
|
46 |
for i, data in enumerate(history):
|
|
|
84 |
# raise Exception(f"Sorry, hitting rate limit. Please try again later. {response}")
|
85 |
|
86 |
for chunk in response.iter_lines():
|
|
|
|
|
87 |
#Skipping first chunk
|
88 |
if counter == 0:
|
89 |
counter += 1
|