tahercoolguy commited on
Commit
b42f60a
·
1 Parent(s): 409006e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -36,14 +36,13 @@ DESCRIPTION += '\n<p>For Colab usage, you can view <a href="https://colab.resear
36
  if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
37
  DESCRIPTION += f'\n<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
38
 
39
- globals pipe
40
 
41
 
42
  def generate(prompt: str, seed: int) -> str:
43
  if seed == -1:
44
  seed = random.randint(0, 1000000)
45
  torch.manual_seed(seed)
46
- return pipe({'text': prompt})[OutputKeys.OUTPUT_VIDEO]
47
 
48
 
49
  examples = [
 
36
  if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
37
  DESCRIPTION += f'\n<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
38
 
 
39
 
40
 
41
  def generate(prompt: str, seed: int) -> str:
42
  if seed == -1:
43
  seed = random.randint(0, 1000000)
44
  torch.manual_seed(seed)
45
+ return "Text"
46
 
47
 
48
  examples = [