Spaces:
Runtime error
Runtime error
Update app.py
Browse filesremoved pdf module for now.
app.py
CHANGED
|
@@ -60,7 +60,10 @@ if st.button("Generate"):
|
|
| 60 |
lang_d,transcription,trans = predict(url,translation=tran_req,tran_lang=lang)
|
| 61 |
|
| 62 |
st.write(lang_d)
|
| 63 |
-
canvas = Canvas("transcript.pdf")
|
| 64 |
-
canvas.drawString(72, 72, transcription)
|
| 65 |
-
canvas.save()
|
| 66 |
-
st.download_button(label="Click here to download the transcript", data=canvas, mime='text/csv',file_name="transcript.pdf")
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
lang_d,transcription,trans = predict(url,translation=tran_req,tran_lang=lang)
|
| 61 |
|
| 62 |
st.write(lang_d)
|
| 63 |
+
#canvas = Canvas("transcript.pdf")
|
| 64 |
+
#canvas.drawString(72, 72, transcription)
|
| 65 |
+
#canvas.save()
|
| 66 |
+
#st.download_button(label="Click here to download the transcript", data=canvas, mime='text/csv',file_name="transcript.pdf")
|
| 67 |
+
st.write(transcription)
|
| 68 |
+
st.write("Translation: ")
|
| 69 |
+
st.write(trans)
|