Spaces:
Runtime error
Runtime error
Commit ·
274ece9
1
Parent(s): 5e272e5
debugging
Browse files
app.py
CHANGED
|
@@ -136,6 +136,15 @@ with gr.Blocks(css=css) as demo:
|
|
| 136 |
with gr.Row():
|
| 137 |
LLM_option = gr.Dropdown(['HuggingFace','OpenAI'],label='Large Language Model Selection')
|
| 138 |
API_key = gr.Textbox(label="Add API key", type="password",autofocus=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
with gr.Accordion(label='Advanced options', open=False):
|
| 140 |
max_new_tokens = gr.Slider(
|
| 141 |
label='Max new tokens',
|
|
@@ -151,15 +160,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 151 |
step = 500,value= 1500
|
| 152 |
)
|
| 153 |
|
| 154 |
-
with gr.Group():
|
| 155 |
-
chatbot = gr.Chatbot(height=300)
|
| 156 |
-
|
| 157 |
-
with gr.Row():
|
| 158 |
-
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
| 159 |
-
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
| 160 |
-
clean_chat_btn = gr.Button("Delete Chat")
|
| 161 |
-
|
| 162 |
-
|
| 163 |
with gr.Column():
|
| 164 |
with gr.Box():
|
| 165 |
youtube_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
|
|
|
|
| 136 |
with gr.Row():
|
| 137 |
LLM_option = gr.Dropdown(['HuggingFace','OpenAI'],label='Large Language Model Selection')
|
| 138 |
API_key = gr.Textbox(label="Add API key", type="password",autofocus=True)
|
| 139 |
+
|
| 140 |
+
with gr.Group():
|
| 141 |
+
chatbot = gr.Chatbot(height=300)
|
| 142 |
+
|
| 143 |
+
with gr.Row():
|
| 144 |
+
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
| 145 |
+
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
| 146 |
+
clean_chat_btn = gr.Button("Delete Chat")
|
| 147 |
+
|
| 148 |
with gr.Accordion(label='Advanced options', open=False):
|
| 149 |
max_new_tokens = gr.Slider(
|
| 150 |
label='Max new tokens',
|
|
|
|
| 160 |
step = 500,value= 1500
|
| 161 |
)
|
| 162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
with gr.Column():
|
| 164 |
with gr.Box():
|
| 165 |
youtube_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
|