Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,7 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import gradio as gr
|
3 |
-
import PyPDF2
|
4 |
|
5 |
def extract_text_from_pdf(file):
|
6 |
-
|
7 |
-
text = ""
|
8 |
-
for page_num in range(pdf_reader.getNumPages()):
|
9 |
-
text += pdf_reader.getPage(page_num).extract_text()
|
10 |
-
return text
|
11 |
|
12 |
def generate_multiple_choice_question(text):
|
13 |
# Placeholder function to simulate question generation
|
|
|
1 |
+
import gradio as gr
|
|
|
|
|
2 |
|
3 |
def extract_text_from_pdf(file):
|
4 |
+
return None
|
|
|
|
|
|
|
|
|
5 |
|
6 |
def generate_multiple_choice_question(text):
|
7 |
# Placeholder function to simulate question generation
|