Update app.py
Browse files
app.py
CHANGED
|
@@ -24,17 +24,17 @@ scheduler = CommitScheduler(
|
|
| 24 |
every=2
|
| 25 |
)
|
| 26 |
|
| 27 |
-
def dprocess(command,
|
| 28 |
print('foo...')
|
| 29 |
with scheduler.lock:
|
| 30 |
with log_file.open("a") as f:
|
| 31 |
f.write(json.dumps(
|
| 32 |
{
|
| 33 |
-
'
|
|
|
|
| 34 |
}
|
| 35 |
))
|
| 36 |
-
f.write(
|
| 37 |
-
|
| 38 |
return 42
|
| 39 |
|
| 40 |
# Set-up the Gradio UI
|
|
|
|
| 24 |
every=2
|
| 25 |
)
|
| 26 |
|
| 27 |
+
def dprocess(command, ddddd):
|
| 28 |
print('foo...')
|
| 29 |
with scheduler.lock:
|
| 30 |
with log_file.open("a") as f:
|
| 31 |
f.write(json.dumps(
|
| 32 |
{
|
| 33 |
+
'p1': 'foo',
|
| 34 |
+
'p2': 100
|
| 35 |
}
|
| 36 |
))
|
| 37 |
+
f.write("\n")
|
|
|
|
| 38 |
return 42
|
| 39 |
|
| 40 |
# Set-up the Gradio UI
|