Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -229,7 +229,7 @@ def process_queries():
|
|
229 |
|
230 |
with gr.Blocks() as demo:
|
231 |
with gr.Row():
|
232 |
-
user_prompt = gr.Textbox(label="Enter your query for the LLM", value="Find me the stars in the
|
233 |
submit_btn = gr.Button("Ask LLM")
|
234 |
reasoning_output = gr.Textbox(label="Reasoning")
|
235 |
the_query_output = gr.Textbox(label="The Query")
|
@@ -240,10 +240,11 @@ with gr.Blocks() as demo:
|
|
240 |
##make_query_complete_bt.click(fn=complete_query, inputs=the_query_output, outputs=[complete_query_output])
|
241 |
submit_btn.click(fn=talk_to_llm, inputs=user_prompt, outputs=[reasoning_output, the_query_output])
|
242 |
|
243 |
-
create_tap_url_bt = gr.Button("Create TAP URL")
|
244 |
download_data_output = gr.Markdown()
|
245 |
-
create_tap_url_bt.click(fn=create_markdown_url_from_query, inputs=the_query_output,
|
246 |
-
|
|
|
247 |
|
248 |
#demo.launch(server_name="0.0.0.0", server_port=7861, share=True, debug=True)
|
249 |
demo.launch()
|
|
|
229 |
|
230 |
with gr.Blocks() as demo:
|
231 |
with gr.Row():
|
232 |
+
user_prompt = gr.Textbox(label="Enter your query for the LLM", value="Find me the stars in the Hyades cluster.")
|
233 |
submit_btn = gr.Button("Ask LLM")
|
234 |
reasoning_output = gr.Textbox(label="Reasoning")
|
235 |
the_query_output = gr.Textbox(label="The Query")
|
|
|
240 |
##make_query_complete_bt.click(fn=complete_query, inputs=the_query_output, outputs=[complete_query_output])
|
241 |
submit_btn.click(fn=talk_to_llm, inputs=user_prompt, outputs=[reasoning_output, the_query_output])
|
242 |
|
243 |
+
#create_tap_url_bt = gr.Button("Create TAP URL")
|
244 |
download_data_output = gr.Markdown()
|
245 |
+
#create_tap_url_bt.click(fn=create_markdown_url_from_query, inputs=the_query_output,
|
246 |
+
# outputs=[download_data_output])
|
247 |
+
download_data_output = create_markdown_url_from_query(the_query_output)
|
248 |
|
249 |
#demo.launch(server_name="0.0.0.0", server_port=7861, share=True, debug=True)
|
250 |
demo.launch()
|