Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -354,23 +354,7 @@ with gr.Blocks() as demo:
|
|
| 354 |
generate_qna_button = gr.Button("Find Answer")
|
| 355 |
generate_qna_button.click(search_question, inputs=text_input_qna, outputs=text_output_qna)
|
| 356 |
|
| 357 |
-
# with gr.Tab("Chat"):
|
| 358 |
-
# gr.ChatInterface(
|
| 359 |
-
# respond,
|
| 360 |
-
# additional_inputs=[
|
| 361 |
-
# gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
| 362 |
-
# gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 363 |
-
# gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 364 |
-
# gr.Slider(
|
| 365 |
-
# minimum=0.1,
|
| 366 |
-
# maximum=1.0,
|
| 367 |
-
# value=0.95,
|
| 368 |
-
# step=0.05,
|
| 369 |
-
# label="Top-p (nucleus sampling)",
|
| 370 |
-
# ),
|
| 371 |
-
# ],
|
| 372 |
-
# )
|
| 373 |
with gr.Tab("Chat"):
|
| 374 |
-
gr.HTML(f"<iframe src='{spc}'></iframe>")
|
| 375 |
|
| 376 |
demo.launch()
|
|
|
|
| 354 |
generate_qna_button = gr.Button("Find Answer")
|
| 355 |
generate_qna_button.click(search_question, inputs=text_input_qna, outputs=text_output_qna)
|
| 356 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 357 |
with gr.Tab("Chat"):
|
| 358 |
+
gr.HTML(f"<iframe src='{spc}' width='100%' height='700'></iframe>")
|
| 359 |
|
| 360 |
demo.launch()
|