Spaces:
Sleeping
Sleeping
rameshmoorthy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -310,7 +310,7 @@ with gr.Blocks(title="Quiz Maker", theme=gr.themes.Default(primary_hue="green",
|
|
310 |
|
311 |
@spaces.GPU
|
312 |
@generate_quiz_btn.click(inputs=[radio, topic], outputs=[quiz_msg,question_radios], api_name="generate_quiz")
|
313 |
-
def generate_quiz(question_difficulty, topic
|
314 |
top_k_rank=10
|
315 |
RAG_db_=RAG_db.value
|
316 |
documents_full=RAG_db_.search(topic,k=top_k_rank)
|
|
|
310 |
|
311 |
@spaces.GPU
|
312 |
@generate_quiz_btn.click(inputs=[radio, topic], outputs=[quiz_msg,question_radios], api_name="generate_quiz")
|
313 |
+
def generate_quiz(question_difficulty, topic):
|
314 |
top_k_rank=10
|
315 |
RAG_db_=RAG_db.value
|
316 |
documents_full=RAG_db_.search(topic,k=top_k_rank)
|