spookyuser commited on
Commit
e9b7526
·
1 Parent(s): ae9ba74

Drope share k

Browse files
Files changed (2) hide show
  1. app.py +1 -5
  2. requirements.txt +0 -1
app.py CHANGED
@@ -2,12 +2,8 @@ import gradio as gr
2
  import torch
3
  from torch import autocast
4
  from diffusers import StableDiffusionPipeline
5
- import argparse
6
  from moviepy.editor import AudioFileClip, ImageClip
7
 
8
- parser = argparse.ArgumentParser()
9
- setshare = parser.add_argument('--setshare', default=False, action=argparse.BooleanOptionalAction)
10
-
11
  def process_inputs(prompt, audio):
12
  image = get_stable_diffusion_image(prompt)
13
  video = add_static_image_to_audio(image, audio)
@@ -43,4 +39,4 @@ def get_stable_diffusion_image(prompt):
43
 
44
 
45
  iface = gr.Interface(fn=process_inputs, inputs=["text", "audio"], outputs="video")
46
- iface.launch(share=setshare)
 
2
  import torch
3
  from torch import autocast
4
  from diffusers import StableDiffusionPipeline
 
5
  from moviepy.editor import AudioFileClip, ImageClip
6
 
 
 
 
7
  def process_inputs(prompt, audio):
8
  image = get_stable_diffusion_image(prompt)
9
  video = add_static_image_to_audio(image, audio)
 
39
 
40
 
41
  iface = gr.Interface(fn=process_inputs, inputs=["text", "audio"], outputs="video")
42
+ iface.launch(share)
requirements.txt CHANGED
@@ -3,5 +3,4 @@ transformers
3
  nvidia-ml-py3
4
  ftfy
5
  --extra-index-url https://download.pytorch.org/whl/cu113 torch
6
- argparse
7
  moviepy
 
3
  nvidia-ml-py3
4
  ftfy
5
  --extra-index-url https://download.pytorch.org/whl/cu113 torch
 
6
  moviepy