Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,13 @@
|
|
|
|
|
|
|
|
1 |
# Install necessary libraries
|
2 |
-
!pip install PyPDF2 transformers torch accelerate
|
3 |
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
import torch
|
6 |
import PyPDF2
|
|
|
7 |
|
8 |
# Step 1: Extract text from PDF
|
9 |
def extract_text_from_pdf(pdf_path):
|
|
|
1 |
+
#!pip install streamlit
|
2 |
+
|
3 |
+
|
4 |
# Install necessary libraries
|
5 |
+
!pip install PyPDF2 transformers torch accelerate streamlit
|
6 |
|
7 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
8 |
import torch
|
9 |
import PyPDF2
|
10 |
+
import streamlit as st
|
11 |
|
12 |
# Step 1: Extract text from PDF
|
13 |
def extract_text_from_pdf(pdf_path):
|