Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,8 @@ def app_interface():
|
|
74 |
|
75 |
task_dropdown = gr.Dropdown(list(tasks.keys()) + ["None"], label="Select a Task (Optional)", value="None")
|
76 |
|
77 |
-
input_text_box= gr.Textbox(label=
|
|
|
78 |
|
79 |
compute_button = gr.Button("Try🐣🛌🏻e5")
|
80 |
|
@@ -82,6 +83,7 @@ def app_interface():
|
|
82 |
|
83 |
with gr.Row():
|
84 |
with gr.Column():
|
|
|
85 |
input_text_box
|
86 |
with gr.Column():
|
87 |
compute_button
|
@@ -89,11 +91,10 @@ def app_interface():
|
|
89 |
|
90 |
compute_button.click(
|
91 |
fn=compute_embeddings,
|
92 |
-
inputs=[task_dropdown, input_text_box],
|
93 |
outputs=output_display
|
94 |
)
|
95 |
|
96 |
return demo
|
97 |
|
98 |
-
# Run the Gradio app
|
99 |
app_interface().launch()
|
|
|
74 |
|
75 |
task_dropdown = gr.Dropdown(list(tasks.keys()) + ["None"], label="Select a Task (Optional)", value="None")
|
76 |
|
77 |
+
input_text_box = gr.Textbox(label="📖Input Text")
|
78 |
+
system_prompt_box = gr.Textbox(label="🤖System Prompt (Optional)")
|
79 |
|
80 |
compute_button = gr.Button("Try🐣🛌🏻e5")
|
81 |
|
|
|
83 |
|
84 |
with gr.Row():
|
85 |
with gr.Column():
|
86 |
+
system_prompt_box
|
87 |
input_text_box
|
88 |
with gr.Column():
|
89 |
compute_button
|
|
|
91 |
|
92 |
compute_button.click(
|
93 |
fn=compute_embeddings,
|
94 |
+
inputs=[task_dropdown, input_text_box, system_prompt_box],
|
95 |
outputs=output_display
|
96 |
)
|
97 |
|
98 |
return demo
|
99 |
|
|
|
100 |
app_interface().launch()
|