holyhigh666
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -151,6 +151,7 @@ with gr.Blocks(title="Ask Questions on Chalcogenide Perovskites",theme=gr.themes
|
|
151 |
gr.Markdown("""
|
152 |
## Retrieval-Augmented Generation for Chalcogenide Perovskites
|
153 |
This space implements Retrieval-Augmented Generation (RAG) using large language models, based on Hui Haolei's work on chalcogenide perovskite papers. You can select different models and choose whether to use RAG to enhance the responses.
|
|
|
154 |
""")
|
155 |
|
156 |
with gr.Row():
|
@@ -198,7 +199,8 @@ with gr.Blocks(title="Ask Questions on Chalcogenide Perovskites",theme=gr.themes
|
|
198 |
],
|
199 |
fn=get_output,
|
200 |
inputs=[model_name, rag, question],
|
201 |
-
outputs=output
|
|
|
202 |
)
|
203 |
|
204 |
demo.launch()
|
|
|
151 |
gr.Markdown("""
|
152 |
## Retrieval-Augmented Generation for Chalcogenide Perovskites
|
153 |
This space implements Retrieval-Augmented Generation (RAG) using large language models, based on Hui Haolei's work on chalcogenide perovskite papers. You can select different models and choose whether to use RAG to enhance the responses.
|
154 |
+
For more details, check my [github](https://github.com/HaoleiH/AI-driven-projects/blob/main/RAG-using-Llama3.2-3b/README_RAG.md).
|
155 |
""")
|
156 |
|
157 |
with gr.Row():
|
|
|
199 |
],
|
200 |
fn=get_output,
|
201 |
inputs=[model_name, rag, question],
|
202 |
+
outputs=output,
|
203 |
+
cache_examples=False
|
204 |
)
|
205 |
|
206 |
demo.launch()
|