MisterAI commited on
Commit
619eddb
·
verified ·
1 Parent(s): e147517

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -8,6 +8,7 @@ import gradio as gr
8
  from transformers import AutoModelForCausalLM, AutoTokenizer
9
  import torch
10
  import time
 
11
  from llm.list_llm import TEXT_MODELS, IMAGE_MODELS
12
  from llm.prompt_llm import PREPROMPT
13
  from python_pptx.python_pptx import PresentationGenerator
@@ -212,7 +213,6 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
212
  )
213
 
214
  # Met à jour le statut toutes les 5 secondes
215
- import threading
216
  def update_status_periodically():
217
  while True:
218
  time.sleep(5)
@@ -223,6 +223,3 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
223
 
224
  if __name__ == "__main__":
225
  demo.launch()
226
-
227
-
228
-
 
8
  from transformers import AutoModelForCausalLM, AutoTokenizer
9
  import torch
10
  import time
11
+ import threading
12
  from llm.list_llm import TEXT_MODELS, IMAGE_MODELS
13
  from llm.prompt_llm import PREPROMPT
14
  from python_pptx.python_pptx import PresentationGenerator
 
213
  )
214
 
215
  # Met à jour le statut toutes les 5 secondes
 
216
  def update_status_periodically():
217
  while True:
218
  time.sleep(5)
 
223
 
224
  if __name__ == "__main__":
225
  demo.launch()