Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,11 @@ class LLM_Langchain():
|
|
22 |
else:
|
23 |
model_name_visibility = False
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
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.
|
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 |
|