eljanmahammadli commited on
Commit
2600e48
·
1 Parent(s): b26a983
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -26,7 +26,7 @@ if gr.NO_RELOAD:
26
  from google_search import google_search, months, domain_list, build_date
27
  from ai_generate import generate, citations_to_html, remove_citations, display_cited_text, llm_wrapper
28
 
29
- nltk.download("punkt_tab")
30
 
31
  print(f"Using device: {device}")
32
  print("Loading AI detection models...")
@@ -1312,8 +1312,8 @@ with gr.Blocks(
1312
 
1313
  if __name__ == "__main__":
1314
  # demo = create_interface()
1315
- # demo.queue(
1316
- # max_size=2,
1317
- # default_concurrency_limit=2,
1318
- # ).launch(server_name="0.0.0.0", share=True, server_port=7890)
1319
- demo.launch(server_name="0.0.0.0")
 
26
  from google_search import google_search, months, domain_list, build_date
27
  from ai_generate import generate, citations_to_html, remove_citations, display_cited_text, llm_wrapper
28
 
29
+ # nltk.download("punkt_tab")
30
 
31
  print(f"Using device: {device}")
32
  print("Loading AI detection models...")
 
1312
 
1313
  if __name__ == "__main__":
1314
  # demo = create_interface()
1315
+ demo.queue(
1316
+ max_size=2,
1317
+ default_concurrency_limit=2,
1318
+ ).launch(server_name="0.0.0.0", share=True, server_port=7890)
1319
+ # demo.launch(server_name="0.0.0.0")