tlskillman commited on
Commit
0aa2eba
·
verified ·
1 Parent(s): 350bd54

Update app.py

Browse files

Undo change attemp

Files changed (1) hide show
  1. app.py +4 -9
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 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")
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
- #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()
 
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()