Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,9 +87,9 @@ system_message_box = gr.Textbox(value="", placeholder="You are a helpful AI Assi
|
|
87 |
|
88 |
max_tokens_slider = gr.Slider(
|
89 |
minimum=1024,
|
90 |
-
maximum=
|
91 |
value=1024,
|
92 |
-
step=
|
93 |
label="Max new tokens"
|
94 |
)
|
95 |
temperature_slider = gr.Slider(
|
@@ -165,13 +165,13 @@ with demo:
|
|
165 |
|
166 |
|
167 |
]
|
168 |
-
|
169 |
featured_model_radio = gr.Radio(
|
170 |
value="meta-llama/Llama-3.2-3B-Instruct",
|
171 |
-
interactive=
|
172 |
)
|
173 |
|
174 |
-
print("Featured models radio button created.")
|
175 |
|
176 |
def filter_models(search_term):
|
177 |
print(f"Filtering models with search term: {search_term}")
|
@@ -180,16 +180,16 @@ with demo:
|
|
180 |
return gr.update(choices=filtered)
|
181 |
|
182 |
|
183 |
-
print("Model search box change event linked.")
|
184 |
|
185 |
featured_model_radio.change(
|
186 |
fn=set_custom_model_from_radio,
|
187 |
inputs=featured_model_radio,
|
188 |
outputs=custom_model_box
|
189 |
)
|
190 |
-
|
191 |
|
192 |
-
print("Gradio interface initialized.")
|
193 |
|
194 |
if __name__ == "__main__":
|
195 |
print("Launching the ChatGPT-Llama.....")
|
|
|
87 |
|
88 |
max_tokens_slider = gr.Slider(
|
89 |
minimum=1024,
|
90 |
+
maximum=2048,
|
91 |
value=1024,
|
92 |
+
step=100,
|
93 |
label="Max new tokens"
|
94 |
)
|
95 |
temperature_slider = gr.Slider(
|
|
|
165 |
|
166 |
|
167 |
]
|
168 |
+
# print("")
|
169 |
featured_model_radio = gr.Radio(
|
170 |
value="meta-llama/Llama-3.2-3B-Instruct",
|
171 |
+
interactive=False
|
172 |
)
|
173 |
|
174 |
+
# print("Featured models radio button created.")
|
175 |
|
176 |
def filter_models(search_term):
|
177 |
print(f"Filtering models with search term: {search_term}")
|
|
|
180 |
return gr.update(choices=filtered)
|
181 |
|
182 |
|
183 |
+
# print("Model search box change event linked.")
|
184 |
|
185 |
featured_model_radio.change(
|
186 |
fn=set_custom_model_from_radio,
|
187 |
inputs=featured_model_radio,
|
188 |
outputs=custom_model_box
|
189 |
)
|
190 |
+
# print("Featured model radio button change event linked.")
|
191 |
|
192 |
+
# print("Gradio interface initialized.")
|
193 |
|
194 |
if __name__ == "__main__":
|
195 |
print("Launching the ChatGPT-Llama.....")
|