Spaces:
Sleeping
Sleeping
Update app.py
Browse files96 unmodified lines97989910010110210336 unmodified lines14014114214314414514696 unmodified linesInput: {statement}"""response = chat_session.send_message(prompt)# print(response.text.replace("```python\n", "").replace("```", "").strip())return ast.literal_eval(response.text.replace("```python\n", "").replace("```", "").strip())def create_notebook(file, tc, bc):36 unmodified lineswith gr.Blocks() as app:gr.Markdown("""# PDF to IPython Notebook Convertor App## Upload your PDF document containing Python code and text and press Process File button to download the iPython Notebook.### Adjust Top Crop and Bottom Crop values based on how much of top and bottom design content of your PDF document you want to eliminate.""")file_input = gr.File(label="Upload a PDF file")96 unmodified lines97989910010110210336 unmodified lines14014114214314414514696 unmodified linesInput: {statement}"""response = chat_session.send_message(prompt)print(response.text.replace("```python\n", "").replace("```", "").strip())return ast.literal_eval(response.text.replace("```python\n", "").replace("```", "").strip())def create_notebook(file, tc, bc):36 unmodified lineswith gr.Blocks() as app:gr.Markdown("""# PDF to IPython Notebook Convertor App## Upload your PDF document containing Python code and Text and press 'Process File' button to download the iPython Notebook.### Adjust Top Crop and Bottom Crop values based on how much of top and bottom design content of your PDF document you want to eliminate.""")file_input = gr.File(label="Upload a PDF file")
app.py+2-2