Spaces:
Sleeping
Sleeping
Update app.py
Browse filesUndo change attemp
app.py
CHANGED
@@ -229,22 +229,17 @@ 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")
|
236 |
-
|
237 |
-
|
238 |
-
#make_query_complete_bt = gr.Button("Complete Query")
|
239 |
-
#complete_query_output = gr.Textbox(label="Complete 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 |
-
|
244 |
download_data_output = gr.Markdown()
|
245 |
-
|
246 |
-
|
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()
|
|
|
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 Hayedes cluster.")
|
233 |
submit_btn = gr.Button("Ask LLM")
|
234 |
reasoning_output = gr.Textbox(label="Reasoning")
|
235 |
the_query_output = gr.Textbox(label="The Query")
|
|
|
|
|
|
|
|
|
236 |
##make_query_complete_bt.click(fn=complete_query, inputs=the_query_output, outputs=[complete_query_output])
|
237 |
submit_btn.click(fn=talk_to_llm, inputs=user_prompt, outputs=[reasoning_output, the_query_output])
|
238 |
|
239 |
+
create_tap_url_bt = gr.Button("Create TAP URL")
|
240 |
download_data_output = gr.Markdown()
|
241 |
+
create_tap_url_bt.click(fn=create_markdown_url_from_query, inputs=the_query_output,
|
242 |
+
outputs=[download_data_output])
|
|
|
243 |
|
244 |
#demo.launch(server_name="0.0.0.0", server_port=7861, share=True, debug=True)
|
245 |
demo.launch()
|