Rooni commited on
Commit
89cd4af
·
verified ·
1 Parent(s): 0933e8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -23,11 +23,7 @@ def generate_image(prompt, base="Anime", motion="", step=8, progress=gr.Progress
23
  video_path = result["video"]
24
  return video_path
25
  except ValueError as e:
26
- # Handle GPU quota exceeded error
27
- if 'You have exceeded your GPU quota' in str(e):
28
- raise gr.Error("Произошла ошибка. Повторите попытку позже.")
29
- else:
30
- raise gr.Error("Произошла ошибка. Повторите попытку позже.")
31
 
32
  # Gradio Interface
33
  with gr.Blocks(css="style.css") as demo:
 
23
  video_path = result["video"]
24
  return video_path
25
  except ValueError as e:
26
+ raise gr.Error("Произошла ошибка. Повторите попытку позже.")
 
 
 
 
27
 
28
  # Gradio Interface
29
  with gr.Blocks(css="style.css") as demo: