as-cle-bert commited on
Commit
fe5480c
·
verified ·
1 Parent(s): 056f401

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -49,6 +49,8 @@ with gr.Blocks() as demo:
49
  chatbot1 = gr.Chatbot()
50
  msg = gr.Textbox()
51
  clear = gr.ClearButton([msg, chatbot])
 
 
52
  def respond(message, chat_history):
53
  response = pipe(message)
54
  bot_message = response[0]["generated_text"]
@@ -57,7 +59,6 @@ with gr.Blocks() as demo:
57
 
58
  import concurrent.futures
59
 
60
- @spaces.GPU(duration=300)
61
  def run_functions_simultaneously():
62
  with concurrent.futures.ThreadPoolExecutor() as executor:
63
  # Submit the first function
 
49
  chatbot1 = gr.Chatbot()
50
  msg = gr.Textbox()
51
  clear = gr.ClearButton([msg, chatbot])
52
+
53
+ @spaces.GPU(duration=300)
54
  def respond(message, chat_history):
55
  response = pipe(message)
56
  bot_message = response[0]["generated_text"]
 
59
 
60
  import concurrent.futures
61
 
 
62
  def run_functions_simultaneously():
63
  with concurrent.futures.ThreadPoolExecutor() as executor:
64
  # Submit the first function