Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -100,10 +100,4 @@ def not_found(e):
|
|
| 100 |
if __name__ == "__main__":
|
| 101 |
if not os.path.isfile(DATABASE):
|
| 102 |
init_db()
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
def status():
|
| 106 |
-
return "Task API is running."
|
| 107 |
-
|
| 108 |
-
demo = gr.Interface(fn=status, inputs=None, outputs="text")
|
| 109 |
-
demo.launch(server_name="0.0.0.0", server_port=7860, debug=False)
|
|
|
|
| 100 |
if __name__ == "__main__":
|
| 101 |
if not os.path.isfile(DATABASE):
|
| 102 |
init_db()
|
| 103 |
+
app.run(host="0.0.0.0", port=5000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|