Spaces:
Sleeping
Sleeping
Commit
·
40568e3
1
Parent(s):
2bf69cd
debugging
Browse files
app.py
CHANGED
@@ -151,20 +151,21 @@ with gr.Blocks(css=css) as demo:
|
|
151 |
with gr.Row():
|
152 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
153 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
temperature = gr.Slider(label='Temperature',minimum=0.1,maximum=4.0,step=0.1,value=DEFAULT_TEMPERATURE,)
|
163 |
-
char_length = gr.Slider(label='Max Character',
|
164 |
-
minimum= DEFAULT_CHAR_LENGTH,
|
165 |
-
maximum = 5*DEFAULT_CHAR_LENGTH,
|
166 |
-
step = 500,value= 1500
|
167 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
|
170 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
|
|
151 |
with gr.Row():
|
152 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
153 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
|
154 |
+
|
155 |
+
with gr.Accordion(label='Advanced options', open=False):
|
156 |
+
max_new_tokens = gr.Slider(
|
157 |
+
label='Max new tokens',
|
158 |
+
minimum=2048,
|
159 |
+
maximum=MAX_NEW_TOKENS,
|
160 |
+
step=1,
|
161 |
+
value=DEFAULT_MAX_NEW_TOKENS,
|
|
|
|
|
|
|
|
|
|
|
162 |
)
|
163 |
+
temperature = gr.Slider(label='Temperature',minimum=0.1,maximum=4.0,step=0.1,value=DEFAULT_TEMPERATURE,)
|
164 |
+
char_length = gr.Slider(label='Max Character',
|
165 |
+
minimum= DEFAULT_CHAR_LENGTH,
|
166 |
+
maximum = 5*DEFAULT_CHAR_LENGTH,
|
167 |
+
step = 500,value= 1500
|
168 |
+
)
|
169 |
|
170 |
|
171 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|