meepmoo commited on
Commit
ffcf97f
1 Parent(s): 4358fb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,7 +46,7 @@ examples = [
46
  @spaces.GPU(duration=180)
47
  def generate(prompt, num_frames, seed, image: np.ndarray):
48
  if num_frames == [] or num_frames is None:
49
- num_frames = 50
50
  else:
51
  num_frames = int(num_frames.split(" ")[0])
52
  if num_frames > 200: # and on_huggingspace:
@@ -69,7 +69,7 @@ def generate(prompt, num_frames, seed, image: np.ndarray):
69
  @spaces.GPU(duration=180)
70
  def enhance(prompt, num_frames, seed, image: np.ndarray, video:str):
71
  if num_frames == [] or num_frames is None:
72
- num_frames = 50
73
  else:
74
  num_frames = int(num_frames.split(" ")[0])
75
  if num_frames > 200: # and on_huggingspace:
@@ -212,4 +212,4 @@ if on_huggingspace:
212
  demo.queue(max_size=20)
213
  demo.launch(debug=True)
214
  else:
215
- demo.queue(api_open=False).launch(share=args.public_access)
 
46
  @spaces.GPU(duration=180)
47
  def generate(prompt, num_frames, seed, image: np.ndarray):
48
  if num_frames == [] or num_frames is None:
49
+ num_frames = 35
50
  else:
51
  num_frames = int(num_frames.split(" ")[0])
52
  if num_frames > 200: # and on_huggingspace:
 
69
  @spaces.GPU(duration=180)
70
  def enhance(prompt, num_frames, seed, image: np.ndarray, video:str):
71
  if num_frames == [] or num_frames is None:
72
+ num_frames = 35
73
  else:
74
  num_frames = int(num_frames.split(" ")[0])
75
  if num_frames > 200: # and on_huggingspace:
 
212
  demo.queue(max_size=20)
213
  demo.launch(debug=True)
214
  else:
215
+ demo.queue(api_open=False).launch(share=True)