nam194 commited on
Commit
d3e8b15
·
1 Parent(s): e420bbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -22,10 +22,11 @@ class LLM_Langchain():
22
  else:
23
  model_name_visibility = False
24
 
25
- self.model_name = return_sum_models(model_parent)
26
- checkpoint = st.sidebar.selectbox(
27
- label = "Model used",
28
- options = [self.model_name],
 
29
  help="Model used to predict",
30
  disabled=model_name_visibility
31
  )
@@ -81,7 +82,7 @@ class LLM_Langchain():
81
 
82
 
83
  llm = HuggingFaceHub(
84
- repo_id = self.model_name,
85
  model_kwargs = self.model_kwargs
86
  )
87
 
 
22
  else:
23
  model_name_visibility = False
24
 
25
+ model_name = return_sum_models(model_parent)
26
+
27
+ self.checkpoint = st.sidebar.selectbox(
28
+ label = "Choose Model (nam194/... is my model)",
29
+ options = [model_name, "Salesforce/codet5-base-multi-sum", f"Salesforce/codet5-base-codexglue-sum-{model_parent}"],
30
  help="Model used to predict",
31
  disabled=model_name_visibility
32
  )
 
82
 
83
 
84
  llm = HuggingFaceHub(
85
+ repo_id = self.checkpoint,
86
  model_kwargs = self.model_kwargs
87
  )
88