nateraw commited on
Commit
b861d01
1 Parent(s): d0f6714

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -1
main.py CHANGED
@@ -3,6 +3,7 @@ import os
3
  import re
4
  import time
5
  import traceback
 
6
 
7
  import openai
8
  import pandas as pd
@@ -205,6 +206,11 @@ def main():
205
  logger.info("Sleeping for 30 seconds...")
206
  time.sleep(30)
207
 
 
 
 
 
208
 
209
  if __name__ == "__main__":
210
- main()
 
 
3
  import re
4
  import time
5
  import traceback
6
+ from threading import Thread
7
 
8
  import openai
9
  import pandas as pd
 
206
  logger.info("Sleeping for 30 seconds...")
207
  time.sleep(30)
208
 
209
+ with gr.Blocks() as demo:
210
+ gr.Markdown(Path('README.md').read_text())
211
+
212
+ thread = Thread(target=main, daemon=True)
213
 
214
  if __name__ == "__main__":
215
+ thread.start()
216
+ demo.launch()