Spaces:
Runtime error
Runtime error
cspocketindia
commited on
Commit
•
85ef5d8
1
Parent(s):
f4cc736
reorder execution
Browse files- gradio_app.py +7 -8
gradio_app.py
CHANGED
@@ -57,14 +57,6 @@ def predict(sentence):
|
|
57 |
return output
|
58 |
|
59 |
|
60 |
-
gradio.Interface(
|
61 |
-
fn=predict,
|
62 |
-
inputs="text",
|
63 |
-
outputs="text",
|
64 |
-
allow_flagging='never'
|
65 |
-
).launch()
|
66 |
-
|
67 |
-
|
68 |
def sync_logs():
|
69 |
print(f"Repo Clean: {repo.is_repo_clean()}")
|
70 |
if not repo.is_repo_clean():
|
@@ -75,3 +67,10 @@ def sync_logs():
|
|
75 |
|
76 |
job = schedule.every().minute.do(sync_logs)
|
77 |
print("Scheduler engaged")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
return output
|
58 |
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
def sync_logs():
|
61 |
print(f"Repo Clean: {repo.is_repo_clean()}")
|
62 |
if not repo.is_repo_clean():
|
|
|
67 |
|
68 |
job = schedule.every().minute.do(sync_logs)
|
69 |
print("Scheduler engaged")
|
70 |
+
|
71 |
+
gradio.Interface(
|
72 |
+
fn=predict,
|
73 |
+
inputs="text",
|
74 |
+
outputs="text",
|
75 |
+
allow_flagging='never'
|
76 |
+
).launch()
|