Surya Narayana commited on
Commit
ddc2423
·
verified ·
1 Parent(s): 119309f

Update text_to_image.py

Browse files
Files changed (1) hide show
  1. text_to_image.py +9 -19
text_to_image.py CHANGED
@@ -8,14 +8,14 @@ Original file is located at
8
  """
9
 
10
  # Commented out IPython magic to ensure Python compatibility.
11
- !pip install -q "openvino>=2023.1.0"
12
- !pip install -q --extra-index-url https://download.pytorch.org/whl/cpu "diffusers[torch]>=0.9.0"
13
- !pip install -q "huggingface-hub>=0.9.1"
14
- !pip install -q gradio
15
- !pip install -q transformers
16
- !pip install kaleido cohere openai tiktoken
17
- !pip install typing-extensions==3.10.0.2
18
- !pip install diffusers transformers
19
 
20
  from diffusers import StableDiffusionPipeline
21
  import gc
@@ -597,14 +597,4 @@ ov_pipe = OVStableDiffusionPipeline(
597
  vae_encoder=vae_encoder,
598
  vae_decoder=vae_decoder,
599
  scheduler=lms
600
- )
601
-
602
-
603
- """Now is show time!"""
604
-
605
- import ipywidgets as widgets
606
-
607
- text = '\n\t'.join(text_prompt.value.split('.'))
608
- print("Input text:")
609
- print("\t" + text)
610
- display(final_image)
 
8
  """
9
 
10
  # Commented out IPython magic to ensure Python compatibility.
11
+ pip install -q "openvino>=2023.1.0"
12
+ pip install -q --extra-index-url https://download.pytorch.org/whl/cpu "diffusers[torch]>=0.9.0"
13
+ pip install -q "huggingface-hub>=0.9.1"
14
+ pip install -q gradio
15
+ pip install -q transformers
16
+ pip install kaleido cohere openai tiktoken
17
+ pip install typing-extensions==3.10.0.2
18
+ pip install diffusers transformers
19
 
20
  from diffusers import StableDiffusionPipeline
21
  import gc
 
597
  vae_encoder=vae_encoder,
598
  vae_decoder=vae_decoder,
599
  scheduler=lms
600
+ )