orderlymirror commited on
Commit
90deeea
·
verified ·
1 Parent(s): cc0e894

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -27
app.py CHANGED
@@ -10,10 +10,6 @@ from huggingface_hub import hf_hub_download
10
  from safetensors.torch import load_file
11
  from PIL import Image
12
 
13
- MORE = """ ## TRY Other Demos
14
- ### Instant Image: 4k images in 5 Second -> https://huggingface.co/spaces/KingNish/Instant-Image
15
- """
16
-
17
  # Constants
18
  bases = {
19
  "Cartoon": "frankjoshua/toonyou_beta6",
@@ -79,12 +75,8 @@ def generate_image(prompt, base="Realistic", motion="", step=8, progress=gr.Prog
79
  # Gradio Interface
80
  with gr.Blocks(css="style.css") as demo:
81
  gr.HTML(
82
- "<h1><center>Instant⚡Video</center></h1>" +
83
- "<p><center><span style='color: red;'>You may change the steps from 4 to 8, if you didn't get satisfied results.</center></p>" +
84
- "<p><center><strong>First Video Generating takes time then Videos generate faster.</p>" +
85
- "<p><center>To get best results Make Sure to Write prompts in style as Given in Examples/p>" +
86
- "<p><a href='https://huggingface.co/spaces/KingNish/Instant-Video/discussions/1' >Must Share you Best Results with Community - Click HERE<a></p>"
87
- )
88
  with gr.Group():
89
  with gr.Row():
90
  prompt = gr.Textbox(
@@ -152,23 +144,6 @@ with gr.Blocks(css="style.css") as demo:
152
  queue = False
153
  )
154
 
155
- gr.Examples(
156
- examples=[
157
- ["Focus: Eiffel Tower (Animate: Clouds moving)"], #Atmosphere Movement Example
158
- ["Focus: Trees In forest (Animate: Lion running)"], #Object Movement Example
159
- ["Focus: Astronaut in Space"], #Normal
160
- ["Focus: Group of Birds in sky (Animate: Birds Moving) (Shot From distance)"], #Camera distance
161
- ["Focus: Statue of liberty (Shot from Drone) (Animate: Drone coming toward statue)"], #Camera Movement
162
- ["Focus: Panda in Forest (Animate: Drinking Tea)"], #Doing Something
163
- ["Focus: Kids Playing (Season: Winter)"], #Atmosphere or Season
164
- {"Focus: Cars in Street (Season: Rain, Daytime) (Shot from Distance) (Movement: Cars running)"} #Mixture
165
- ],
166
- fn=generate_image,
167
- inputs=[prompt],
168
- outputs=[video],
169
- cache_examples="lazy",
170
- )
171
-
172
  demo.queue().launch()
173
 
174
  Translate
 
10
  from safetensors.torch import load_file
11
  from PIL import Image
12
 
 
 
 
 
13
  # Constants
14
  bases = {
15
  "Cartoon": "frankjoshua/toonyou_beta6",
 
75
  # Gradio Interface
76
  with gr.Blocks(css="style.css") as demo:
77
  gr.HTML(
78
+ "<h1><center>Textual Imagination : A Text To Video Synthesis</center></h1>"
79
+ )
 
 
 
 
80
  with gr.Group():
81
  with gr.Row():
82
  prompt = gr.Textbox(
 
144
  queue = False
145
  )
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  demo.queue().launch()
148
 
149
  Translate