Flo161 commited on
Commit
2444fb8
·
1 Parent(s): 59e3acd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ import io
9
  from PIL import Image
10
  from pptx import Presentation
11
  from pptx.util import Inches, Pt
12
- import tempfile # Import tempfile module
13
 
14
  API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
15
  headers = {"Authorization": "Bearer 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"}
@@ -114,7 +114,7 @@ if uploaded_file is not None:
114
  left = Inches(1)
115
  top = Inches(1)
116
  width = Inches(8) # Adjust the width as needed
117
- height = prs.slide_height - Inches(4) # Adjust the height as needed
118
  txBox = slide.shapes.add_textbox(left, top, width, height)
119
  tf = txBox.text_frame
120
  p = tf.add_paragraph()
 
9
  from PIL import Image
10
  from pptx import Presentation
11
  from pptx.util import Inches, Pt
12
+ import tempfile
13
 
14
  API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
15
  headers = {"Authorization": "Bearer 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"}
 
114
  left = Inches(1)
115
  top = Inches(1)
116
  width = Inches(8) # Adjust the width as needed
117
+ height = Inches(2) # Adjust the height as needed
118
  txBox = slide.shapes.add_textbox(left, top, width, height)
119
  tf = txBox.text_frame
120
  p = tf.add_paragraph()