Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,6 @@ def run_parallel(prompts: List[str], query_fn, max_workers: int = 5) -> List[str
|
|
| 43 |
results.append(res)
|
| 44 |
except Exception as e:
|
| 45 |
print(e)
|
| 46 |
-
print(res)
|
| 47 |
pass
|
| 48 |
|
| 49 |
return results
|
|
@@ -146,7 +145,7 @@ with gr.Blocks(title="📚 BookRecommender") as demo:
|
|
| 146 |
""")
|
| 147 |
|
| 148 |
query_input = gr.Textbox(label="Назва сфери або компанії", placeholder="Наприклад: Universe Group, Genesis, IT-компанії України")
|
| 149 |
-
context_input = gr.Textbox(label="
|
| 150 |
search_button = gr.Button("🔍 Знайти книжки")
|
| 151 |
status_box = gr.Textbox(label="Прогрес виконання", interactive=False)
|
| 152 |
book_output = gr.Textbox(label="Список рекомендованих книжок", lines=20, interactive=True, visible=False)
|
|
|
|
| 43 |
results.append(res)
|
| 44 |
except Exception as e:
|
| 45 |
print(e)
|
|
|
|
| 46 |
pass
|
| 47 |
|
| 48 |
return results
|
|
|
|
| 145 |
""")
|
| 146 |
|
| 147 |
query_input = gr.Textbox(label="Назва сфери або компанії", placeholder="Наприклад: Universe Group, Genesis, IT-компанії України")
|
| 148 |
+
context_input = gr.Textbox(label="Контекст", placeholder="Наприклад: в Україні, на світовому ринку")
|
| 149 |
search_button = gr.Button("🔍 Знайти книжки")
|
| 150 |
status_box = gr.Textbox(label="Прогрес виконання", interactive=False)
|
| 151 |
book_output = gr.Textbox(label="Список рекомендованих книжок", lines=20, interactive=True, visible=False)
|