Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- chatgpt.py +3 -2
chatgpt.py
CHANGED
@@ -250,7 +250,8 @@ def update_chatbot_type(chatbot_display_name):
|
|
250 |
chatbot_type = display_to_value.get(chatbot_display_name, 'enhanced')
|
251 |
return chatbot_type
|
252 |
|
253 |
-
def start_timer(
|
|
|
254 |
|
255 |
while seconds_left >= 0:
|
256 |
minutes, seconds = divmod(seconds_left, 60)
|
@@ -479,7 +480,7 @@ with gr.Blocks(css=css) as app:
|
|
479 |
|
480 |
start_event = start_button.click(
|
481 |
fn=start_timer,
|
482 |
-
inputs=[
|
483 |
outputs=timer_display
|
484 |
)
|
485 |
|
|
|
250 |
chatbot_type = display_to_value.get(chatbot_display_name, 'enhanced')
|
251 |
return chatbot_type
|
252 |
|
253 |
+
def start_timer():
|
254 |
+
seconds_left = 480
|
255 |
|
256 |
while seconds_left >= 0:
|
257 |
minutes, seconds = divmod(seconds_left, 60)
|
|
|
480 |
|
481 |
start_event = start_button.click(
|
482 |
fn=start_timer,
|
483 |
+
inputs=[],
|
484 |
outputs=timer_display
|
485 |
)
|
486 |
|