Spaces:
Runtime error
Runtime error
Commit ·
3ef5f9b
1
Parent(s): 047725b
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import gradio as gr
|
|
| 7 |
|
| 8 |
def down(url):
|
| 9 |
r = requests.get(url, stream = True)
|
| 10 |
-
with open("d.
|
| 11 |
for chunk in r.iter_content(chunk_size = 1024): # 1024 bytes
|
| 12 |
if chunk:
|
| 13 |
Pypdf.write(chunk)
|
|
|
|
| 7 |
|
| 8 |
def down(url):
|
| 9 |
r = requests.get(url, stream = True)
|
| 10 |
+
with open("d.jpg", "wb") as Pypdf:
|
| 11 |
for chunk in r.iter_content(chunk_size = 1024): # 1024 bytes
|
| 12 |
if chunk:
|
| 13 |
Pypdf.write(chunk)
|