Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -275,7 +275,7 @@ with gr.Blocks(title="Quiz Maker", theme=gr.themes.Default(primary_hue="green",
|
|
| 275 |
RAG= RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")
|
| 276 |
RAG_db.value=RAG.from_index('.ragatouille/colbert/indexes/cbseclass10index')
|
| 277 |
return 'Ready to Go!!'
|
| 278 |
-
with gr.
|
| 279 |
gr.HTML("""
|
| 280 |
<center>
|
| 281 |
<h1><span style="color: purple;">AI NANBAN</span> - CBSE Class Quiz Maker</h1>
|
|
@@ -284,7 +284,7 @@ with gr.Blocks(title="Quiz Maker", theme=gr.themes.Default(primary_hue="green",
|
|
| 284 |
</center>
|
| 285 |
""")
|
| 286 |
#gr.Warning('Retrieving using ColBERT.. First time query will take a minute for model to load..pls wait')
|
| 287 |
-
with gr.
|
| 288 |
load_btn = gr.Button("Click to Load!π")
|
| 289 |
load_text=gr.Textbox()
|
| 290 |
load_btn.click(load_model,[],load_text)
|
|
|
|
| 275 |
RAG= RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")
|
| 276 |
RAG_db.value=RAG.from_index('.ragatouille/colbert/indexes/cbseclass10index')
|
| 277 |
return 'Ready to Go!!'
|
| 278 |
+
with gr.Column(scale=4):
|
| 279 |
gr.HTML("""
|
| 280 |
<center>
|
| 281 |
<h1><span style="color: purple;">AI NANBAN</span> - CBSE Class Quiz Maker</h1>
|
|
|
|
| 284 |
</center>
|
| 285 |
""")
|
| 286 |
#gr.Warning('Retrieving using ColBERT.. First time query will take a minute for model to load..pls wait')
|
| 287 |
+
with gr.Column(scale=2):
|
| 288 |
load_btn = gr.Button("Click to Load!π")
|
| 289 |
load_text=gr.Textbox()
|
| 290 |
load_btn.click(load_model,[],load_text)
|