selcukwashere commited on
Commit
613de63
·
1 Parent(s): 1a72edc

Style changes

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. llm_rag_setup.py +2 -1
app.py CHANGED
@@ -12,6 +12,7 @@ custom_css = """
12
  }
13
  .source-box {
14
  background-color: #f0f0f0;
 
15
  padding: 10px;
16
  border-radius: 5px;
17
  margin: 5px 0;
 
12
  }
13
  .source-box {
14
  background-color: #f0f0f0;
15
+ color: black;
16
  padding: 10px;
17
  border-radius: 5px;
18
  margin: 5px 0;
llm_rag_setup.py CHANGED
@@ -128,7 +128,7 @@ def init_rag():
128
  top_p=0.95,
129
  repetition_penalty=1.1,
130
  )
131
-
132
  llm = ChatHuggingFace(llm=llm_endpoint)
133
  print("✅ HuggingFace LLM initialized (Qwen2.5-7B-Instruct)")
134
  except Exception as e:
@@ -208,5 +208,6 @@ def query_rag(question: str):
208
  except Exception as e:
209
  print(f"❌ Error querying RAG: {e}")
210
  import traceback
 
211
  traceback.print_exc()
212
  return None
 
128
  top_p=0.95,
129
  repetition_penalty=1.1,
130
  )
131
+
132
  llm = ChatHuggingFace(llm=llm_endpoint)
133
  print("✅ HuggingFace LLM initialized (Qwen2.5-7B-Instruct)")
134
  except Exception as e:
 
208
  except Exception as e:
209
  print(f"❌ Error querying RAG: {e}")
210
  import traceback
211
+
212
  traceback.print_exc()
213
  return None