Spaces:
Sleeping
Sleeping
NCTCMumbai
commited on
Commit
•
80e2c7e
1
Parent(s):
74ee3b7
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ with gr.Blocks(title="Quiz Maker", theme=colorful_theme) as QUIZBOT:
|
|
151 |
documents = [documents[idx] for idx in sim_scores_argsort[:top_k_rank]]
|
152 |
|
153 |
formatted_prompt = system_instructions(question_difficulty, topic, '\n'.join(documents))
|
154 |
-
|
155 |
try:
|
156 |
response = client.predict(query=formatted_prompt, history=[], system="You are a helpful assistant.", api_name="/model_chat")
|
157 |
response1 = response[1][0][1]
|
|
|
151 |
documents = [documents[idx] for idx in sim_scores_argsort[:top_k_rank]]
|
152 |
|
153 |
formatted_prompt = system_instructions(question_difficulty, topic, '\n'.join(documents))
|
154 |
+
print(' Formatted Prompt : ' ,formatted_prompt)
|
155 |
try:
|
156 |
response = client.predict(query=formatted_prompt, history=[], system="You are a helpful assistant.", api_name="/model_chat")
|
157 |
response1 = response[1][0][1]
|