robertolofaro commited on
Commit
e698615
·
verified ·
1 Parent(s): 97283de

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -139,7 +139,7 @@ def generate_response(message, history, rag_mode, article_filter, max_tokens, te
139
  # ====================== GRADIO INTERFACE ======================
140
  with gr.Blocks(title="Article Q&A model") as demo:
141
  gr.Markdown("# sourcing 350+ articles on change")
142
- gr.Markdown("Qwen3.5-4B DoRA fine-tuned on 350+ articles")
143
 
144
  with gr.Row():
145
  rag_mode = gr.Radio(
@@ -147,11 +147,11 @@ with gr.Blocks(title="Article Q&A model") as demo:
147
  value="FAISS - RAG (HNSW)",
148
  label="Mode"
149
  )
150
- article_filter = gr.Dropdown(
151
- choices=ARTICLE_LIST,
152
- value="All articles",
153
- label="Focus on article"
154
- )
155
 
156
  with gr.Accordion("Advanced Generation Parameters", open=False):
157
  max_tokens = gr.Slider(256, 2048, value=900, step=64, label="Max Tokens")
 
139
  # ====================== GRADIO INTERFACE ======================
140
  with gr.Blocks(title="Article Q&A model") as demo:
141
  gr.Markdown("# sourcing 350+ articles on change")
142
+ gr.Markdown("Qwen3.5-4B DoRA fine-tuned on 350+ articles - experimental (CPU-only, ie. takes few minutes) - you can enter your own question in the bottom chatbox")
143
 
144
  with gr.Row():
145
  rag_mode = gr.Radio(
 
147
  value="FAISS - RAG (HNSW)",
148
  label="Mode"
149
  )
150
+ # article_filter = gr.Dropdown(
151
+ # choices=ARTICLE_LIST,
152
+ # value="All articles",
153
+ # label="Focus on article"
154
+ # )
155
 
156
  with gr.Accordion("Advanced Generation Parameters", open=False):
157
  max_tokens = gr.Slider(256, 2048, value=900, step=64, label="Max Tokens")