Spaces:
Runtime error
Runtime error
Added Descriptions
Browse files- Videobook/Videobook.py +1 -1
- app.py +2 -1
Videobook/Videobook.py
CHANGED
@@ -18,7 +18,7 @@ class Videobook:
|
|
18 |
imgs = []
|
19 |
for sentence in sentences:
|
20 |
sentence['pos'] = self.style + ' of ' + sentence['pos'] + ', ' + self.tags
|
21 |
-
imgs.append(self.pipe.generate(prompt = sentence['pos'], negative_prompt = sentence['neg'], num_inference_steps = steps))
|
22 |
return imgs
|
23 |
|
24 |
def generate(self, story, api_key, style, tags, model, steps):
|
|
|
18 |
imgs = []
|
19 |
for sentence in sentences:
|
20 |
sentence['pos'] = self.style + ' of ' + sentence['pos'] + ', ' + self.tags
|
21 |
+
imgs.append(self.pipe.generate(prompt = sentence['pos'], negative_prompt = sentence['neg'] + " ,nude, disfigured, blurry", num_inference_steps = steps))
|
22 |
return imgs
|
23 |
|
24 |
def generate(self, story, api_key, style, tags, model, steps):
|
app.py
CHANGED
@@ -3,7 +3,8 @@ import gradio as gr
|
|
3 |
|
4 |
gen = Videobook()
|
5 |
with gr.Blocks() as demo:
|
6 |
-
gr.
|
|
|
7 |
with gr.Row():
|
8 |
with gr.Column():
|
9 |
story = gr.inputs.Textbox(lines = 5, label = "Story")
|
|
|
3 |
|
4 |
gen = Videobook()
|
5 |
with gr.Blocks() as demo:
|
6 |
+
gr.Markdown("# Videobook")
|
7 |
+
gr.Markdown("This app generates a Narrated Video from a story.")
|
8 |
with gr.Row():
|
9 |
with gr.Column():
|
10 |
story = gr.inputs.Textbox(lines = 5, label = "Story")
|