Spaces:
Runtime error
Runtime error
project-baize
commited on
Commit
•
b860d5b
1
Parent(s):
9d3530f
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,7 @@ def predict(text,
|
|
44 |
begin_length = len(prompt)
|
45 |
torch.cuda.empty_cache()
|
46 |
input_ids = inputs["input_ids"].to(device)
|
|
|
47 |
total_count += 1
|
48 |
print(total_count)
|
49 |
with torch.no_grad():
|
|
|
44 |
begin_length = len(prompt)
|
45 |
torch.cuda.empty_cache()
|
46 |
input_ids = inputs["input_ids"].to(device)
|
47 |
+
global total_count
|
48 |
total_count += 1
|
49 |
print(total_count)
|
50 |
with torch.no_grad():
|