developersajidbashir commited on
Commit
9eae81e
·
verified ·
1 Parent(s): 3f54ea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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="Model is running in the background", inputs=[], outputs="text").launch()
 
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()