Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|