Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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 =
|
| 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()
|