Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,6 +122,7 @@ with gr.Blocks(theme = gr.themes.Soft()) as demo:
|
|
122 |
database_to_use = database_choice
|
123 |
if database_choice == index_info:
|
124 |
rag_out = get_rag(message)
|
|
|
125 |
else:
|
126 |
arxiv_search_success = True
|
127 |
try:
|
@@ -152,7 +153,6 @@ with gr.Blocks(theme = gr.themes.Soft()) as demo:
|
|
152 |
def ask_llm(prompt, llm_model_picked = 'mistralai/Mistral-7B-Instruct-v0.2', stream_outputs = False):
|
153 |
model_disabled_text = "LLM Model is disabled"
|
154 |
output = ""
|
155 |
-
print(prompt)
|
156 |
if llm_model_picked == 'None':
|
157 |
if stream_outputs:
|
158 |
for out in model_disabled_text:
|
|
|
122 |
database_to_use = database_choice
|
123 |
if database_choice == index_info:
|
124 |
rag_out = get_rag(message)
|
125 |
+
rag_out
|
126 |
else:
|
127 |
arxiv_search_success = True
|
128 |
try:
|
|
|
153 |
def ask_llm(prompt, llm_model_picked = 'mistralai/Mistral-7B-Instruct-v0.2', stream_outputs = False):
|
154 |
model_disabled_text = "LLM Model is disabled"
|
155 |
output = ""
|
|
|
156 |
if llm_model_picked == 'None':
|
157 |
if stream_outputs:
|
158 |
for out in model_disabled_text:
|