Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,6 +136,9 @@ def start_model_in_background():
|
|
| 136 |
thread = threading.Thread(target=run_model)
|
| 137 |
thread.daemon = True
|
| 138 |
thread.start()
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
if __name__ == "__main__":
|
| 141 |
data = fetch_data()
|
|
@@ -147,4 +150,4 @@ if __name__ == "__main__":
|
|
| 147 |
|
| 148 |
model = PPO.load("ppo_trading_agent", env=env)
|
| 149 |
start_model_in_background()
|
| 150 |
-
gr.Interface(fn=
|
|
|
|
| 136 |
thread = threading.Thread(target=run_model)
|
| 137 |
thread.daemon = True
|
| 138 |
thread.start()
|
| 139 |
+
|
| 140 |
+
def dummy_interface():
|
| 141 |
+
return "Model is running in the background."
|
| 142 |
|
| 143 |
if __name__ == "__main__":
|
| 144 |
data = fetch_data()
|
|
|
|
| 150 |
|
| 151 |
model = PPO.load("ppo_trading_agent", env=env)
|
| 152 |
start_model_in_background()
|
| 153 |
+
gr.Interface(fn=dummy_interface, inputs=[], outputs="text").launch()
|