Spaces:
Build error
Build error
Commit
·
6397fdd
1
Parent(s):
e9fb1d8
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,9 +221,9 @@ def download_data(tap_url):
|
|
| 221 |
def process_queries():
|
| 222 |
results = {}
|
| 223 |
for prompt in user_prompt_examples:
|
| 224 |
-
print
|
| 225 |
reasoning, the_query = talk_to_llm(prompt)
|
| 226 |
-
query = the_query
|
| 227 |
download_url_from_query(query, prompt)
|
| 228 |
return results
|
| 229 |
|
|
@@ -233,7 +233,6 @@ with gr.Blocks() as demo:
|
|
| 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")
|
|
|
|
| 221 |
def process_queries():
|
| 222 |
results = {}
|
| 223 |
for prompt in user_prompt_examples:
|
| 224 |
+
print(f"Processing prompt: {prompt}")
|
| 225 |
reasoning, the_query = talk_to_llm(prompt)
|
| 226 |
+
query = the_query
|
| 227 |
download_url_from_query(query, prompt)
|
| 228 |
return results
|
| 229 |
|
|
|
|
| 233 |
submit_btn = gr.Button("Ask LLM")
|
| 234 |
reasoning_output = gr.Textbox(label="Reasoning")
|
| 235 |
the_query_output = gr.Textbox(label="The Query")
|
|
|
|
| 236 |
submit_btn.click(fn=talk_to_llm, inputs=user_prompt, outputs=[reasoning_output, the_query_output])
|
| 237 |
|
| 238 |
create_tap_url_bt = gr.Button("Create TAP URL")
|