Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def generate_text(prompt, max_length=256, temperature=0.7, top_p=0.9, top_k=150,
|
|
69 |
|
70 |
def save_feedback(input,output,params) -> None:
|
71 |
with scheduler.lock:
|
72 |
-
with
|
73 |
f.write(json.dumps({"input": input, "output": output, "params": params}))
|
74 |
f.write("\n")
|
75 |
|
|
|
69 |
|
70 |
def save_feedback(input,output,params) -> None:
|
71 |
with scheduler.lock:
|
72 |
+
with submit_file.open("a") as f:
|
73 |
f.write(json.dumps({"input": input, "output": output, "params": params}))
|
74 |
f.write("\n")
|
75 |
|